blob: f5752832e93b58d246f79cea722cc26ec40f21ef [file] [log] [blame]
Restorerab4f27e2023-11-18 16:12:20 +00001#
2# Makefile for converted the Vim menu files on Windows
3#
4# 08.11.23, Restorer, <restorer@mail2k.ru>
5
6!IF [powershell -nologo -noprofile "exit $$psversiontable.psversion.major"] == 2
7!ERROR The program "PowerShell" version 3.0 or higher is required to work
8!ENDIF
9
10# Common components
11!INCLUDE Make_all.mak
12
13# Correct the following line for the directory where iconv is installed
14ICONV_PATH = D:\Programs\GetText\bin
15
16# In case some package like GnuWin32, UnixUtils, gettext
17# or something similar is installed on the system.
18# If the "iconv" program is installed on the system, but it is not registered
19# in the %PATH% environment variable, then specify the full path to this file.
20!IF EXIST ("iconv.exe")
21ICONV = iconv.exe
22!ELSEIF EXIST ("$(ICONV_PATH)\iconv.exe")
23ICONV="$(ICONV_PATH)\iconv.exe"
24!ENDIF
25
26RM = del /q
27
28
29all : $(CONVERTED)
30
31# Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim.
32menu_chinese_gb.936.vim : menu_zh_cn.utf-8.vim
33 $(RM) $@
34!IF DEFINED (ICONV)
35 $(ICONV) -f UTF-8 -t CP936 $? >$@
36!ELSE
37 powershell -nologo -noprofile -Command \
38 [System.IO.File]::WriteAllText(\"$@\", \
39 [System.IO.File]::ReadAllText(\"$?\", \
40 [System.Text.Encoding]::GetEncoding(65001)), \
41 [System.Text.Encoding]::GetEncoding(936))
42!ENDIF
43 powershell -nologo -noprofile -Command \
44 $$out = [System.IO.File]::ReadAllText(\"$@\", \
45 [System.Text.Encoding]::GetEncoding(936)) -replace \
46 'scriptencoding utf-8', 'scriptencoding cp936' -replace \
47 ' Original translations', ' Generated from menu_zh_cn.utf-8.vim, DO NOT EDIT'; \
48 [System.IO.File]::WriteAllText(\"$@\", $$out, \
49 [System.Text.Encoding]::GetEncoding(936))
50
51# Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim.
52menu_chinese_taiwan.950.vim : menu_zh_tw.utf-8.vim
53 $(RM) $@
54!IF DEFINED (ICONV)
55 $(ICONV) -f UTF-8 -t CP950 $? >$@
56!ELSE
57 powershell -nologo -noprofile -Command \
58 [System.IO.File]::WriteAllText(\"$@\", \
59 [System.IO.File]::ReadAllText(\"$?\", \
60 [System.Text.Encoding]::GetEncoding(65001)), \
61 [System.Text.Encoding]::GetEncoding(950))
62!ENDIF
63 powershell -nologo -noprofile -Command \
64 $$out = [System.IO.File]::ReadAllText(\"$@\", \
65 [System.Text.Encoding]::GetEncoding(950)) -replace \
66 'scriptencoding utf-8', 'scriptencoding cp950' -replace \
67 ' Original translations', ' Generated from menu_zh_tw.utf-8.vim, DO NOT EDIT'; \
68 [System.IO.File]::WriteAllText(\"$@\", $$out, \
69 [System.Text.Encoding]::GetEncoding(950))
70
71# Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim.
72menu_cs_cz.iso_8859-2.vim : menu_cs_cz.utf-8.vim
73 $(RM) $@
74!IF DEFINED (ICONV)
75 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
76!ELSE
77 powershell -nologo -noprofile -Command \
78 [System.IO.File]::WriteAllText(\"$@\", \
79 [System.IO.File]::ReadAllText(\"$?\", \
80 [System.Text.Encoding]::GetEncoding(65001)), \
81 [System.Text.Encoding]::GetEncoding(28592))
82!ENDIF
83 powershell -nologo -noprofile -Command \
84 $$out = [System.IO.File]::ReadAllText(\"$@\", \
85 [System.Text.Encoding]::GetEncoding(28592)) -replace \
86 ' Czech \(UTF-8\)', ' Czech (ISO-8859-2)' -replace \
87 \"scriptencoding utf-8\", \"scriptencoding iso-8859-2\" -replace \
88 \" Original translations\", \" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT\"; \
89 [System.IO.File]::WriteAllText(\"$@\", $$out, \
90 [System.Text.Encoding]::GetEncoding(28592))
91
92# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim.
93menu_czech_czech_republic.1250.vim : menu_cs_cz.utf-8.vim
94 $(RM) $@
95!IF DEFINED (ICONV)
96 $(ICONV) -f UTF-8 -t CP1250 $? >$@
97!ELSE
98 powershell -nologo -noprofile -Command \
99 [System.IO.File]::WriteAllText(\"$@\", \
100 [System.IO.File]::ReadAllText(\"$?\", \
101 [System.Text.Encoding]::GetEncoding(65001)), \
102 [System.Text.Encoding]::GetEncoding(1250))
103!ENDIF
104 powershell -nologo -noprofile -Command \
105 $$out = [System.IO.File]::ReadAllText(\"$@\", \
106 [System.Text.Encoding]::GetEncoding(1250)) -replace \
107 ' Czech \(UTF-8\)', ' Czech (CP1250)' -replace \
108 \"scriptencoding utf-8\", \"scriptencoding cp1250\" -replace \
109 \" Original translations\", \" Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT\"; \
110 [System.IO.File]::WriteAllText(\"$@\", $$out, \
111 [System.Text.Encoding]::GetEncoding(1250))
112
113# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim.
114menu_czech_czech_republic.ascii.vim : menu_cs_cz.utf-8.vim
115 $(RM) $@
116 powershell -nologo -noprofile -Command \
117 [System.IO.File]::ReadAllText(\"$?\", \
118 [System.Text.Encoding]::GetEncoding(65001)) -replace \
119 'scriptencoding utf-8', 'scriptencoding latin1' -replace \
120 ' Original translations', ' Generated from menu_cs_cz.utf-8.vim, DO NOT EDIT' -replace \
121 'Czech \(UTF-8\)', 'Czech (ASCII - without diacritics)' -creplace \
122 [char]193, 'A' -creplace [char]225, 'a' -creplace [char]268, 'C' -creplace \
123 [char]269, 'c' -creplace [char]270, 'D' -creplace [char]271, 'd' -creplace \
124 [char]201, 'E' -creplace [char]233, 'e' -creplace [char]282, 'E' -creplace \
125 [char]283, 'e' -creplace [char]205, 'I' -creplace [char]237, 'i' -creplace \
126 [char]327, 'N' -creplace [char]328, 'n' -creplace [char]211, 'O' -creplace \
127 [char]243, 'o' -creplace [char]344, 'R' -creplace [char]345, 'r' -creplace \
128 [char]352, 'S' -creplace [char]353, 's' -creplace [char]356, 'T' -creplace \
129 [char]357, 't' -creplace [char]218, 'U' -creplace [char]250, 'u' -creplace \
130 [char]366, 'U' -creplace [char]367, 'u' -creplace [char]221, 'Y' -creplace \
131 [char]253, 'y' -creplace [char]381, 'Z' -creplace [char]382, 'z' ^| \
132 1>nul New-Item -Force -Path . -ItemType file -Name $@
133
134# Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim.
135menu_hu_hu.iso_8859-2.vim : menu_hu_hu.utf-8.vim
136 $(RM) $@
137!IF DEFINED (ICONV)
138 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
139!ELSE
140 powershell -nologo -noprofile -Command \
141 [System.IO.File]::WriteAllText(\"$@\", \
142 [System.IO.File]::ReadAllText(\"$?\", \
143 [System.Text.Encoding]::GetEncoding(65001)), \
144 [System.Text.Encoding]::GetEncoding(28592))
145!ENDIF
146 powershell -nologo -noprofile -Command \
147 $$out = [System.IO.File]::ReadAllText(\"$@\", \
148 [System.Text.Encoding]::GetEncoding(28592)) -replace \
149 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
150 ' Original translations', ' Generated from menu_hu_hu.utf-8.vim, DO NOT EDIT'; \
151 [System.IO.File]::WriteAllText(\"$@\", $$out, \
152 [System.Text.Encoding]::GetEncoding(28592))
153
154# Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim.
155menu_ja_jp.euc-jp.vim : menu_ja_jp.utf-8.vim
156 $(RM) $@
157!IF DEFINED (ICONV)
158 $(ICONV) -f UTF-8 -t EUC-JP $? >$@
159!ELSE
160 powershell -nologo -noprofile -Command \
161 [System.IO.File]::WriteAllText(\"$@\", \
162 [System.IO.File]::ReadAllText(\"$?\", \
163 [System.Text.Encoding]::GetEncoding(65001)), \
164 [System.Text.Encoding]::GetEncoding(51932))
165!ENDIF
166 powershell -nologo -noprofile -Command \
167 $$out = [System.IO.File]::ReadAllText(\"$@\", \
168 [System.Text.Encoding]::GetEncoding(51932)) -replace \
169 'Japanese \(UTF-8\)', 'Japanese (EUC-JP)' -replace \
170 'scriptencoding utf-8', 'scriptencoding euc-jp' -replace \
171 ' Original translations', ' Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT'; \
172 [System.IO.File]::WriteAllText(\"$@\", $$out, \
173 [System.Text.Encoding]::GetEncoding(51932))
174
175# Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim.
176menu_japanese_japan.932.vim : menu_ja_jp.utf-8.vim
177 $(RM) $@
178!IF DEFINED (ICONV)
179 $(ICONV) -f UTF-8 -t CP932 $? >$@
180!ELSE
181 powershell -nologo -noprofile -Command \
182 [System.IO.File]::WriteAllText(\"$@\", \
183 [System.IO.File]::ReadAllText(\"$?\", \
184 [System.Text.Encoding]::GetEncoding(65001)), \
185 [System.Text.Encoding]::GetEncoding(932))
186!ENDIF
187 powershell -nologo -noprofile -Command \
188 $$out = [System.IO.File]::ReadAllText(\"$@\", \
189 [System.Text.Encoding]::GetEncoding(932)) -replace \
190 'Japanese \(UTF-8\)', 'Japanese (CP932)' -replace \
191 'scriptencoding utf-8', 'scriptencoding cp932' -replace \
192 ' Original translations', ' Generated from menu_ja_jp.utf-8.vim, DO NOT EDIT'; \
193 [System.IO.File]::WriteAllText(\"$@\", $$out, \
194 [System.Text.Encoding]::GetEncoding(932))
195
196# Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim.
197menu_ko_kr.euckr.vim : menu_ko_kr.utf-8.vim
198 $(RM) $@
199!IF DEFINED (ICONV)
200 $(ICONV) -f UTF-8 -t EUC-KR $? >$@
201!ELSE
202 powershell -nologo -noprofile -Command \
203 [System.IO.File]::WriteAllText(\"$@\", \
204 [System.IO.File]::ReadAllText(\"$?\", \
205 [System.Text.Encoding]::GetEncoding(65001)), \
206 [System.Text.Encoding]::GetEncoding(51949))
207!ENDIF
208 powershell -nologo -noprofile -Command \
209 $$out = [System.IO.File]::ReadAllText(\"$@\", \
210 [System.Text.Encoding]::GetEncoding(51949)) -replace \
211 'scriptencoding utf-8', 'scriptencoding euc-kr' -replace \
212 ' Original translations', ' Generated from menu_ko_kr.utf-8.vim, DO NOT EDIT'; \
213 [System.IO.File]::WriteAllText(\"$@\", $$out, \
214 [System.Text.Encoding]::GetEncoding(51949))
215
216# Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim.
217menu_pl_pl.iso_8859-2.vim : menu_pl_pl.utf-8.vim
218 $(RM) $@
219!IF DEFINED (ICONV)
220 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
221!ELSE
222 powershell -nologo -noprofile -Command \
223 [System.IO.File]::WriteAllText(\"$@\", \
224 [System.IO.File]::ReadAllText(\"$?\", \
225 [System.Text.Encoding]::GetEncoding(65001)), \
226 [System.Text.Encoding]::GetEncoding(28592))
227!ENDIF
228 powershell -nologo -noprofile -Command \
229 $$out = [System.IO.File]::ReadAllText(\"$@\", \
230 [System.Text.Encoding]::GetEncoding(28592)) -replace \
231 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
232 ' Original translations', ' Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT'; \
233 [System.IO.File]::WriteAllText(\"$@\", $$out, \
234 [System.Text.Encoding]::GetEncoding(28592))
235
236# Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim.
237menu_polish_poland.1250.vim : menu_pl_pl.utf-8.vim
238 $(RM) $@
239!IF DEFINED (ICONV)
240 $(ICONV) -f UTF-8 -t CP1250 $? >$@
241!ELSE
242 powershell -nologo -noprofile -Command \
243 [System.IO.File]::WriteAllText(\"$@\", \
244 [System.IO.File]::ReadAllText(\"$?\", \
245 [System.Text.Encoding]::GetEncoding(65001)), \
246 [System.Text.Encoding]::GetEncoding(1250))
247!ENDIF
248 powershell -nologo -noprofile -Command \
249 $$out = [System.IO.File]::ReadAllText(\"$@\", \
250 [System.Text.Encoding]::GetEncoding(1250)) -replace \
251 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \
252 ' Original translations', ' Generated from menu_pl_pl.utf-8.vim, DO NOT EDIT'; \
253 [System.IO.File]::WriteAllText(\"$@\", $$out, \
254 [System.Text.Encoding]::GetEncoding(1250))
255
256# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.cp1251.vim.
257menu_ru_ru.cp1251.vim : menu_ru_ru.utf-8.vim
258 $(RM) $@
259!IF DEFINED (ICONV)
260 $(ICONV) -f UTF-8 -t CP1251 $? >$@
261!ELSE
262 powershell -nologo -noprofile -Command \
263 [System.IO.File]::WriteAllText(\"$@\", \
264 [System.IO.File]::ReadAllText(\"$?\", \
265 [System.Text.Encoding]::GetEncoding(65001)), \
266 [System.Text.Encoding]::GetEncoding(1251))
267!ENDIF
268 powershell -nologo -noprofile -Command \
269 $$out = [System.IO.File]::ReadAllText(\"$@\", \
270 [System.Text.Encoding]::GetEncoding(1251)) -replace \
271 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \
272 ' Original translations', ' Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT'; \
273 [System.IO.File]::WriteAllText(\"$@\", $$out, \
274 [System.Text.Encoding]::GetEncoding(1251))
275
276# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim.
277menu_ru_ru.koi8-r.vim : menu_ru_ru.utf-8.vim
278 $(RM) $@
279!IF DEFINED (ICONV)
280 $(ICONV) -f UTF-8 -t KOI8-R $? >$@
281!ELSE
282 powershell -nologo -noprofile -Command \
283 [System.IO.File]::WriteAllText(\"$@\", \
284 [System.IO.File]::ReadAllText(\"$?\", \
285 [System.Text.Encoding]::GetEncoding(65001)), \
286 [System.Text.Encoding]::GetEncoding(20866))
287!ENDIF
288 powershell -nologo -noprofile -Command \
289 $$out = [System.IO.File]::ReadAllText(\"$@\", \
290 [System.Text.Encoding]::GetEncoding(20866)) -replace \
291 'scriptencoding utf-8', 'scriptencoding koi8-r' -replace \
292 ' Original translations', ' Generated from menu_ru_ru.utf-8.vim, DO NOT EDIT'; \
293 [System.IO.File]::WriteAllText(\"$@\", $$out, \
294 [System.Text.Encoding]::GetEncoding(20866))
295
296# Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim.
297menu_sk_sk.iso_8859-2.vim : menu_slovak_slovak_republic.1250.vim
298 $(RM) $@
299!IF DEFINED (ICONV)
300 $(ICONV) -f CP1250 -t ISO-8859-2 $? >$@
301!ELSE
302 powershell -nologo -noprofile -Command \
303 [System.IO.File]::WriteAllText(\"$@\", \
304 [System.IO.File]::ReadAllText(\"$?\", \
305 [System.Text.Encoding]::GetEncoding(1250)), \
306 [System.Text.Encoding]::GetEncoding(28592))
307!ENDIF
308 powershell -nologo -noprofile -Command \
309 $$out = [System.IO.File]::ReadAllText(\"$@\", \
310 [System.Text.Encoding]::GetEncoding(28592)) -replace \
311 'scriptencoding cp1250', 'scriptencoding iso-8859-2' -replace \
312 ' Original translations', ' Generated from menu_slovak_slovak_republic.1250.vim, DO NOT EDIT'; \
313 [System.IO.File]::WriteAllText(\"$@\", $$out, \
314 [System.Text.Encoding]::GetEncoding(28592))
315
316# Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim.
317menu_sl_si.cp1250.vim : menu_sl_si.utf-8.vim
318 $(RM) $@
319!IF DEFINED (ICONV)
320 $(ICONV) -f UTF-8 -t CP1250 $? >$@
321!ELSE
322 powershell -nologo -noprofile -Command \
323 [System.IO.File]::WriteAllText(\"$@\", \
324 [System.IO.File]::ReadAllText(\"$?\", \
325 [System.Text.Encoding]::GetEncoding(65001)), \
326 [System.Text.Encoding]::GetEncoding(1250))
327!ENDIF
328 powershell -nologo -noprofile -Command \
329 $$out = [System.IO.File]::ReadAllText(\"$@\", \
330 [System.Text.Encoding]::GetEncoding(1250)) -replace \
331 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \
332 ' Original translations', ' Generated from menu_sl_si.utf-8.vim, DO NOT EDIT'; \
333 [System.IO.File]::WriteAllText(\"$@\", $$out, \
334 [System.Text.Encoding]::GetEncoding(1250))
335
336# Convert menu_sl_si.utf-8.vim to create menu_sl_si.latin2.vim.
337menu_sl_si.latin2.vim : menu_sl_si.utf-8.vim
338 $(RM) $@
339!IF DEFINED (ICONV)
340 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
341!ELSE
342 powershell -nologo -noprofile -Command \
343 [System.IO.File]::WriteAllText(\"$@\", \
344 [System.IO.File]::ReadAllText(\"$?\", \
345 [System.Text.Encoding]::GetEncoding(65001)), \
346 [System.Text.Encoding]::GetEncoding(28592))
347!ENDIF
348 powershell -nologo -noprofile -Command \
349 $$out = [System.IO.File]::ReadAllText(\"$@\", \
350 [System.Text.Encoding]::GetEncoding(28592)) -replace \
351 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
352 ' Original translations', ' Generated from menu_sl_si.utf-8.vim, DO NOT EDIT'; \
353 [System.IO.File]::WriteAllText(\"$@\", $$out, \
354 [System.Text.Encoding]::GetEncoding(28592))
355
356# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim.
357menu_sr_rs.ascii.vim : menu_sr_rs.utf-8.vim
358 $(RM) $@
359 powershell -nologo -noprofile -Command \
360 [System.IO.File]::ReadAllText(\"$?\", \
361 [System.Text.Encoding]::GetEncoding(65001)) -replace \
362 'scriptencoding utf-8', 'scriptencoding latin1' -replace \
363 ' Original translations', ' Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT' -creplace \
364 [char]1072, 'a' -creplace [char]1073, 'b' -creplace [char]1074, 'v' -creplace \
365 [char]1075, 'g' -creplace [char]1076, 'd' -creplace [char]1106, 'dj' -creplace \
366 [char]1077, 'e' -creplace [char]1078, 'z' -creplace [char]1079, 'z' -creplace \
367 [char]1080, 'i' -creplace [char]1112, 'j' -creplace [char]1082, 'k' -creplace \
368 [char]1083, 'l' -creplace [char]1113, 'lj' -creplace [char]1084, 'm' -creplace \
369 [char]1085, 'n' -creplace [char]1114, 'nj' -creplace [char]1086, 'o' -creplace \
370 [char]1087, 'p' -creplace [char]1088, 'r' -creplace [char]1089, 's' -creplace \
371 [char]1090, 't' -creplace [char]1115, 'c' -creplace [char]1091, 'u' -creplace \
372 [char]1092, 'f' -creplace [char]1093, 'h' -creplace [char]1094, 'c' -creplace \
373 [char]1095, 'c' -creplace [char]1119, 'dz' -creplace [char]1096, 's' -creplace \
374 [char]1040, 'A' -creplace [char]1041, 'B' -creplace [char]1042, 'V' -creplace \
375 [char]1043, 'G' -creplace [char]1044, 'D' -creplace [char]1026, 'Đ' -creplace \
376 [char]1045, 'E' -creplace [char]1046, 'Z' -creplace [char]1047, 'Z' -creplace \
377 [char]1048, 'I' -creplace [char]1032, 'J' -creplace [char]1050, 'K' -creplace \
378 [char]1051, 'L' -creplace [char]1033, 'Lj' -creplace [char]1052, 'M' -creplace \
379 [char]1053, 'N' -creplace [char]1034, 'Nj' -creplace [char]1054, 'O' -creplace \
380 [char]1055, 'P' -creplace [char]1056, 'R' -creplace [char]1057, 'S' -creplace \
381 [char]1058, 'T' -creplace [char]1035, 'C' -creplace [char]1059, 'U' -creplace \
382 [char]1060, 'F' -creplace [char]1061, 'H' -creplace [char]1062, 'C' -creplace \
383 [char]1063, 'C' -creplace [char]1039, 'Dz' -creplace [char]1064, 'S' ^| \
384 1>nul New-Item -Force -Path . -ItemType file -Name $@
385
386# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim.
387menu_sr_rs.iso_8859-2.vim : menu_sr_rs.utf-8.vim
388 $(RM) $@
389 powershell -nologo -noprofile -Command \
390 $$out = [System.IO.File]::ReadAllText(\"$?\", \
391 [System.Text.Encoding]::GetEncoding(65001)) -creplace \
392 [char]1072, 'a' -creplace [char]1073, 'b' -creplace [char]1074, 'v' -creplace \
393 [char]1075, 'g' -creplace [char]1076, 'd' -creplace [char]1106, [char]273 -creplace \
394 [char]1077, 'e' -creplace [char]1078, [char]382 -creplace [char]1079, 'z' -creplace \
395 [char]1080, 'i' -creplace [char]1112, 'j' -creplace [char]1082, 'k' -creplace \
396 [char]1083, 'l' -creplace [char]1113, 'lj' -creplace [char]1084, 'm' -creplace \
397 [char]1085, 'n' -creplace [char]1114, 'nj' -creplace [char]1086, 'o' -creplace \
398 [char]1087, 'p' -creplace [char]1088, 'r' -creplace [char]1089, 's' -creplace \
399 [char]1090, 't' -creplace [char]1115, [char]263 -creplace [char]1091, 'u' -creplace \
400 [char]1092, 'f' -creplace [char]1093, 'h' -creplace [char]1094, 'c' -creplace \
401 [char]1095, [char]269 -creplace [char]1119, 'dz' -creplace [char]1096, [char]353 -creplace \
402 [char]1040, 'A' -creplace [char]1041, 'B' -creplace [char]1042, 'V' -creplace \
403 [char]1043, 'G' -creplace [char]1044, 'D' -creplace [char]1026, 'Đ' -creplace \
404 [char]1045, 'E' -creplace [char]1046, [char]381 -creplace [char]1047, 'Z' -creplace \
405 [char]1048, 'I' -creplace [char]1032, 'J' -creplace [char]1050, 'K' -creplace \
406 [char]1051, 'L' -creplace [char]1033, 'Lj'-creplace [char]1052, 'M' -creplace \
407 [char]1053, 'N' -creplace [char]1034, 'Nj' -creplace [char]1054, 'O' -creplace \
408 [char]1055, 'P' -creplace [char]1056, 'R' -creplace [char]1057, 'S' -creplace \
409 [char]1058, 'T' -creplace [char]1035, [char]262 -creplace [char]1059, 'U' -creplace \
410 [char]1060, 'F' -creplace [char]1061, 'H' -creplace [char]1062, 'C' -creplace \
411 [char]1063, [char]268 -creplace [char]1039, 'Dz' -creplace [char]1064, [char]352 -replace \
412 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
413 ' Original translations', ' Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT'; \
414 [System.IO.File]::WriteAllText(\"$@\", $$out, [System.Text.Encoding]::GetEncoding(28592))
415
416# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim.
417menu_sr_rs.iso_8859-5.vim : menu_sr_rs.utf-8.vim
418 $(RM) $@
419!IF DEFINED (ICONV)
420 $(ICONV) -f UTF-8 -t ISO-8859-5 $? >$@
421!ELSE
422 powershell -nologo -noprofile -Command \
423 [System.IO.File]::WriteAllText(\"$@\", \
424 [System.IO.File]::ReadAllText(\"$?\", \
425 [System.Text.Encoding]::GetEncoding(65001)), \
426 [System.Text.Encoding]::GetEncoding(28595))
427!ENDIF
428 powershell -nologo -noprofile -Command \
429 $$out = [System.IO.File]::ReadAllText(\"$@\", \
430 [System.Text.Encoding]::GetEncoding(28595)) -replace \
431 'scriptencoding utf-8', 'scriptencoding iso-8859-5' -replace \
432 ' Original translations', ' Generated from menu_sr_rs.utf-8.vim, DO NOT EDIT'; \
433 [System.IO.File]::WriteAllText(\"$@\", $$out, \
434 [System.Text.Encoding]::GetEncoding(28595))
435
436# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim.
437menu_tr_tr.cp1254.vim : menu_tr_tr.utf-8.vim
438 $(RM) $@
439!IF DEFINED (ICONV)
440 $(ICONV) -f UTF-8 -t CP1254 $? >$@
441!ELSE
442 powershell -nologo -noprofile -Command \
443 [System.IO.File]::WriteAllText(\"$@\", \
444 [System.IO.File]::ReadAllText(\"$?\", \
445 [System.Text.Encoding]::GetEncoding(65001)), \
446 [System.Text.Encoding]::GetEncoding(1254))
447!ENDIF
448 powershell -nologo -noprofile -Command \
449 $$out = [System.IO.File]::ReadAllText(\"$@\", \
450 [System.Text.Encoding]::GetEncoding(1254)) -replace \
451 'scriptencoding utf-8', 'scriptencoding cp1254' -replace \
452 ' Original translations', ' Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT'; \
453 [System.IO.File]::WriteAllText(\"$@\", $$out, \
454 [System.Text.Encoding]::GetEncoding(1254))
455
456# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim.
457menu_tr_tr.iso_8859-9.vim : menu_tr_tr.utf-8.vim
458 $(RM) $@
459!IF DEFINED (ICONV)
460 $(ICONV) -f UTF-8 -t ISO-8859-9 $? >$@
461!ELSE
462 powershell -nologo -noprofile -Command \
463 [System.IO.File]::WriteAllText(\"$@\", \
464 [System.IO.File]::ReadAllText(\"$?\", \
465 [System.Text.Encoding]::GetEncoding(65001)), \
466 [System.Text.Encoding]::GetEncoding(28599))
467!ENDIF
468 powershell -nologo -noprofile -Command \
469 $$out = [System.IO.File]::ReadAllText(\"$@\", \
470 [System.Text.Encoding]::GetEncoding(28599)) -replace \
471 'scriptencoding utf-8', 'scriptencoding iso-8859-9' -replace \
472 ' Original translations', ' Generated from menu_tr_tr.utf-8.vim, DO NOT EDIT'; \
473 [System.IO.File]::WriteAllText(\"$@\", $$out, \
474 [System.Text.Encoding]::GetEncoding(28599))
475
476# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim.
477menu_uk_ua.cp1251.vim : menu_uk_ua.utf-8.vim
478 $(RM) $@
479!IF DEFINED (ICONV)
480 $(ICONV) -f UTF-8 -t CP1251 $? >$@
481!ELSE
482 powershell -nologo -noprofile -Command \
483 [System.IO.File]::WriteAllText(\"$@\", \
484 [System.IO.File]::ReadAllText(\"$?\", \
485 [System.Text.Encoding]::GetEncoding(65001)), \
486 [System.Text.Encoding]::GetEncoding(1251))
487!ENDIF
488 powershell -nologo -noprofile -Command \
489 $$out = [System.IO.File]::ReadAllText(\"$@\", \
490 [System.Text.Encoding]::GetEncoding(1251)) -replace \
491 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \
492 ' Original translations', ' Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT'; \
493 [System.IO.File]::WriteAllText(\"$@\", $$out, \
494 [System.Text.Encoding]::GetEncoding(1251))
495
496# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim.
497menu_uk_ua.koi8-u.vim : menu_uk_ua.utf-8.vim
498 $(RM) $@
499!IF DEFINED (ICONV)
500 $(ICONV) -f UTF-8 -t KOI8-U $? >$@
501!ELSE
502 powershell -nologo -noprofile -Command \
503 [System.IO.File]::WriteAllText(\"$@\", \
504 [System.IO.File]::ReadAllText(\"$?\", \
505 [System.Text.Encoding]::GetEncoding(65001)), \
506 [System.Text.Encoding]::GetEncoding(21866))
507!ENDIF
508 powershell -nologo -noprofile -Command \
509 $$out = [System.IO.File]::ReadAllText(\"$@\", \
510 [System.Text.Encoding]::GetEncoding(21866)) -replace \
511 'scriptencoding utf-8', 'scriptencoding koi8-u' -replace \
512 ' Original translations', ' Generated from menu_uk_ua.utf-8.vim, DO NOT EDIT'; \
513 [System.IO.File]::WriteAllText(\"$@\", $$out, \
514 [System.Text.Encoding]::GetEncoding(21866))
515
516# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: