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