blob: c8647181b27114a0199b7e25fdf5f250c30cdb96 [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
Restorere8ff5e62024-01-22 22:41:47 +030028PS = PowerShell.exe
29
30PSFLAGS = -NoLogo -NoProfile -Command
Restorerab4f27e2023-11-18 16:12:20 +000031
32
33all : $(CONVERTED)
34
35# Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim.
36menu_chinese_gb.936.vim : menu_zh_cn.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +030037 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +000038!IF DEFINED (ICONV)
39 $(ICONV) -f UTF-8 -t CP936 $? >$@
40!ELSE
Restorere8ff5e62024-01-22 22:41:47 +030041 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000042 [System.IO.File]::ReadAllText(\"$?\", \
43 [System.Text.Encoding]::GetEncoding(65001)), \
44 [System.Text.Encoding]::GetEncoding(936))
45!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +030046 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000047 [System.Text.Encoding]::GetEncoding(936)) -replace \
48 'scriptencoding utf-8', 'scriptencoding cp936' -replace \
Restorere8ff5e62024-01-22 22:41:47 +030049 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +000050 [System.IO.File]::WriteAllText(\"$@\", $$out, \
51 [System.Text.Encoding]::GetEncoding(936))
52
53# Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim.
54menu_chinese_taiwan.950.vim : menu_zh_tw.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +030055 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +000056!IF DEFINED (ICONV)
57 $(ICONV) -f UTF-8 -t CP950 $? >$@
58!ELSE
Restorere8ff5e62024-01-22 22:41:47 +030059 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000060 [System.IO.File]::ReadAllText(\"$?\", \
61 [System.Text.Encoding]::GetEncoding(65001)), \
62 [System.Text.Encoding]::GetEncoding(950))
63!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +030064 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000065 [System.Text.Encoding]::GetEncoding(950)) -replace \
66 'scriptencoding utf-8', 'scriptencoding cp950' -replace \
Restorere8ff5e62024-01-22 22:41:47 +030067 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +000068 [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
Restorere8ff5e62024-01-22 22:41:47 +030073 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +000074!IF DEFINED (ICONV)
75 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
76!ELSE
Restorere8ff5e62024-01-22 22:41:47 +030077 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000078 [System.IO.File]::ReadAllText(\"$?\", \
79 [System.Text.Encoding]::GetEncoding(65001)), \
80 [System.Text.Encoding]::GetEncoding(28592))
81!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +030082 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000083 [System.Text.Encoding]::GetEncoding(28592)) -replace \
84 ' Czech \(UTF-8\)', ' Czech (ISO-8859-2)' -replace \
85 \"scriptencoding utf-8\", \"scriptencoding iso-8859-2\" -replace \
Restorere8ff5e62024-01-22 22:41:47 +030086 \" Original translations\", \" Generated from $?, DO NOT EDIT\"; \
Restorerab4f27e2023-11-18 16:12:20 +000087 [System.IO.File]::WriteAllText(\"$@\", $$out, \
88 [System.Text.Encoding]::GetEncoding(28592))
89
90# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim.
91menu_czech_czech_republic.1250.vim : menu_cs_cz.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +030092 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +000093!IF DEFINED (ICONV)
94 $(ICONV) -f UTF-8 -t CP1250 $? >$@
95!ELSE
Restorere8ff5e62024-01-22 22:41:47 +030096 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +000097 [System.IO.File]::ReadAllText(\"$?\", \
98 [System.Text.Encoding]::GetEncoding(65001)), \
99 [System.Text.Encoding]::GetEncoding(1250))
100!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300101 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000102 [System.Text.Encoding]::GetEncoding(1250)) -replace \
103 ' Czech \(UTF-8\)', ' Czech (CP1250)' -replace \
104 \"scriptencoding utf-8\", \"scriptencoding cp1250\" -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300105 \" Original translations\", \" Generated from $?, DO NOT EDIT\"; \
Restorerab4f27e2023-11-18 16:12:20 +0000106 [System.IO.File]::WriteAllText(\"$@\", $$out, \
107 [System.Text.Encoding]::GetEncoding(1250))
108
109# Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim.
110menu_czech_czech_republic.ascii.vim : menu_cs_cz.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300111 -$(RM) $@
112 $(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
Restorerab4f27e2023-11-18 16:12:20 +0000113 [System.Text.Encoding]::GetEncoding(65001)) -replace \
114 'scriptencoding utf-8', 'scriptencoding latin1' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300115 ' Original translations', ' Generated from $?, DO NOT EDIT' -replace \
Restorerab4f27e2023-11-18 16:12:20 +0000116 'Czech \(UTF-8\)', 'Czech (ASCII - without diacritics)' -creplace \
117 [char]193, 'A' -creplace [char]225, 'a' -creplace [char]268, 'C' -creplace \
118 [char]269, 'c' -creplace [char]270, 'D' -creplace [char]271, 'd' -creplace \
119 [char]201, 'E' -creplace [char]233, 'e' -creplace [char]282, 'E' -creplace \
120 [char]283, 'e' -creplace [char]205, 'I' -creplace [char]237, 'i' -creplace \
121 [char]327, 'N' -creplace [char]328, 'n' -creplace [char]211, 'O' -creplace \
122 [char]243, 'o' -creplace [char]344, 'R' -creplace [char]345, 'r' -creplace \
123 [char]352, 'S' -creplace [char]353, 's' -creplace [char]356, 'T' -creplace \
124 [char]357, 't' -creplace [char]218, 'U' -creplace [char]250, 'u' -creplace \
125 [char]366, 'U' -creplace [char]367, 'u' -creplace [char]221, 'Y' -creplace \
126 [char]253, 'y' -creplace [char]381, 'Z' -creplace [char]382, 'z' ^| \
127 1>nul New-Item -Force -Path . -ItemType file -Name $@
128
129# Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim.
130menu_hu_hu.iso_8859-2.vim : menu_hu_hu.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300131 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000132!IF DEFINED (ICONV)
133 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
134!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300135 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000136 [System.IO.File]::ReadAllText(\"$?\", \
137 [System.Text.Encoding]::GetEncoding(65001)), \
138 [System.Text.Encoding]::GetEncoding(28592))
139!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300140 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000141 [System.Text.Encoding]::GetEncoding(28592)) -replace \
142 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300143 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000144 [System.IO.File]::WriteAllText(\"$@\", $$out, \
145 [System.Text.Encoding]::GetEncoding(28592))
146
147# Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim.
148menu_ja_jp.euc-jp.vim : menu_ja_jp.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300149 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000150!IF DEFINED (ICONV)
151 $(ICONV) -f UTF-8 -t EUC-JP $? >$@
152!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300153 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000154 [System.IO.File]::ReadAllText(\"$?\", \
155 [System.Text.Encoding]::GetEncoding(65001)), \
156 [System.Text.Encoding]::GetEncoding(51932))
157!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300158 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000159 [System.Text.Encoding]::GetEncoding(51932)) -replace \
160 'Japanese \(UTF-8\)', 'Japanese (EUC-JP)' -replace \
161 'scriptencoding utf-8', 'scriptencoding euc-jp' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300162 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000163 [System.IO.File]::WriteAllText(\"$@\", $$out, \
164 [System.Text.Encoding]::GetEncoding(51932))
165
166# Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim.
167menu_japanese_japan.932.vim : menu_ja_jp.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300168 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000169!IF DEFINED (ICONV)
170 $(ICONV) -f UTF-8 -t CP932 $? >$@
171!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300172 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000173 [System.IO.File]::ReadAllText(\"$?\", \
174 [System.Text.Encoding]::GetEncoding(65001)), \
175 [System.Text.Encoding]::GetEncoding(932))
176!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300177 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000178 [System.Text.Encoding]::GetEncoding(932)) -replace \
179 'Japanese \(UTF-8\)', 'Japanese (CP932)' -replace \
180 'scriptencoding utf-8', 'scriptencoding cp932' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300181 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000182 [System.IO.File]::WriteAllText(\"$@\", $$out, \
183 [System.Text.Encoding]::GetEncoding(932))
184
185# Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim.
186menu_ko_kr.euckr.vim : menu_ko_kr.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300187 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000188!IF DEFINED (ICONV)
189 $(ICONV) -f UTF-8 -t EUC-KR $? >$@
190!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300191 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000192 [System.IO.File]::ReadAllText(\"$?\", \
193 [System.Text.Encoding]::GetEncoding(65001)), \
194 [System.Text.Encoding]::GetEncoding(51949))
195!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300196 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000197 [System.Text.Encoding]::GetEncoding(51949)) -replace \
198 'scriptencoding utf-8', 'scriptencoding euc-kr' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300199 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000200 [System.IO.File]::WriteAllText(\"$@\", $$out, \
201 [System.Text.Encoding]::GetEncoding(51949))
202
203# Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim.
204menu_pl_pl.iso_8859-2.vim : menu_pl_pl.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300205 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000206!IF DEFINED (ICONV)
207 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
208!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300209 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000210 [System.IO.File]::ReadAllText(\"$?\", \
211 [System.Text.Encoding]::GetEncoding(65001)), \
212 [System.Text.Encoding]::GetEncoding(28592))
213!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300214 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000215 [System.Text.Encoding]::GetEncoding(28592)) -replace \
216 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300217 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000218 [System.IO.File]::WriteAllText(\"$@\", $$out, \
219 [System.Text.Encoding]::GetEncoding(28592))
220
221# Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim.
222menu_polish_poland.1250.vim : menu_pl_pl.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300223 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000224!IF DEFINED (ICONV)
225 $(ICONV) -f UTF-8 -t CP1250 $? >$@
226!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300227 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000228 [System.IO.File]::ReadAllText(\"$?\", \
229 [System.Text.Encoding]::GetEncoding(65001)), \
230 [System.Text.Encoding]::GetEncoding(1250))
231!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300232 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000233 [System.Text.Encoding]::GetEncoding(1250)) -replace \
234 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300235 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000236 [System.IO.File]::WriteAllText(\"$@\", $$out, \
237 [System.Text.Encoding]::GetEncoding(1250))
238
239# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.cp1251.vim.
240menu_ru_ru.cp1251.vim : menu_ru_ru.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300241 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000242!IF DEFINED (ICONV)
243 $(ICONV) -f UTF-8 -t CP1251 $? >$@
244!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300245 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000246 [System.IO.File]::ReadAllText(\"$?\", \
247 [System.Text.Encoding]::GetEncoding(65001)), \
248 [System.Text.Encoding]::GetEncoding(1251))
249!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300250 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000251 [System.Text.Encoding]::GetEncoding(1251)) -replace \
252 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300253 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000254 [System.IO.File]::WriteAllText(\"$@\", $$out, \
255 [System.Text.Encoding]::GetEncoding(1251))
256
257# Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim.
258menu_ru_ru.koi8-r.vim : menu_ru_ru.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300259 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000260!IF DEFINED (ICONV)
261 $(ICONV) -f UTF-8 -t KOI8-R $? >$@
262!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300263 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000264 [System.IO.File]::ReadAllText(\"$?\", \
265 [System.Text.Encoding]::GetEncoding(65001)), \
266 [System.Text.Encoding]::GetEncoding(20866))
267!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300268 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000269 [System.Text.Encoding]::GetEncoding(20866)) -replace \
270 'scriptencoding utf-8', 'scriptencoding koi8-r' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300271 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000272 [System.IO.File]::WriteAllText(\"$@\", $$out, \
273 [System.Text.Encoding]::GetEncoding(20866))
274
275# Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim.
276menu_sk_sk.iso_8859-2.vim : menu_slovak_slovak_republic.1250.vim
Restorere8ff5e62024-01-22 22:41:47 +0300277 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000278!IF DEFINED (ICONV)
279 $(ICONV) -f CP1250 -t ISO-8859-2 $? >$@
280!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300281 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000282 [System.IO.File]::ReadAllText(\"$?\", \
283 [System.Text.Encoding]::GetEncoding(1250)), \
284 [System.Text.Encoding]::GetEncoding(28592))
285!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300286 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000287 [System.Text.Encoding]::GetEncoding(28592)) -replace \
288 'scriptencoding cp1250', 'scriptencoding iso-8859-2' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300289 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000290 [System.IO.File]::WriteAllText(\"$@\", $$out, \
291 [System.Text.Encoding]::GetEncoding(28592))
292
293# Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim.
294menu_sl_si.cp1250.vim : menu_sl_si.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300295 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000296!IF DEFINED (ICONV)
297 $(ICONV) -f UTF-8 -t CP1250 $? >$@
298!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300299 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000300 [System.IO.File]::ReadAllText(\"$?\", \
301 [System.Text.Encoding]::GetEncoding(65001)), \
302 [System.Text.Encoding]::GetEncoding(1250))
303!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300304 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000305 [System.Text.Encoding]::GetEncoding(1250)) -replace \
306 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300307 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000308 [System.IO.File]::WriteAllText(\"$@\", $$out, \
309 [System.Text.Encoding]::GetEncoding(1250))
310
311# Convert menu_sl_si.utf-8.vim to create menu_sl_si.latin2.vim.
312menu_sl_si.latin2.vim : menu_sl_si.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300313 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000314!IF DEFINED (ICONV)
315 $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@
316!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300317 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000318 [System.IO.File]::ReadAllText(\"$?\", \
319 [System.Text.Encoding]::GetEncoding(65001)), \
320 [System.Text.Encoding]::GetEncoding(28592))
321!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300322 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000323 [System.Text.Encoding]::GetEncoding(28592)) -replace \
324 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300325 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000326 [System.IO.File]::WriteAllText(\"$@\", $$out, \
327 [System.Text.Encoding]::GetEncoding(28592))
328
329# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim.
330menu_sr_rs.ascii.vim : menu_sr_rs.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300331 -$(RM) $@
332 $(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \
Restorerab4f27e2023-11-18 16:12:20 +0000333 [System.Text.Encoding]::GetEncoding(65001)) -replace \
334 'scriptencoding utf-8', 'scriptencoding latin1' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300335 ' Original translations', ' Generated from $?, DO NOT EDIT' -creplace \
Restorerab4f27e2023-11-18 16:12:20 +0000336 [char]1072, 'a' -creplace [char]1073, 'b' -creplace [char]1074, 'v' -creplace \
337 [char]1075, 'g' -creplace [char]1076, 'd' -creplace [char]1106, 'dj' -creplace \
338 [char]1077, 'e' -creplace [char]1078, 'z' -creplace [char]1079, 'z' -creplace \
339 [char]1080, 'i' -creplace [char]1112, 'j' -creplace [char]1082, 'k' -creplace \
340 [char]1083, 'l' -creplace [char]1113, 'lj' -creplace [char]1084, 'm' -creplace \
341 [char]1085, 'n' -creplace [char]1114, 'nj' -creplace [char]1086, 'o' -creplace \
342 [char]1087, 'p' -creplace [char]1088, 'r' -creplace [char]1089, 's' -creplace \
343 [char]1090, 't' -creplace [char]1115, 'c' -creplace [char]1091, 'u' -creplace \
344 [char]1092, 'f' -creplace [char]1093, 'h' -creplace [char]1094, 'c' -creplace \
345 [char]1095, 'c' -creplace [char]1119, 'dz' -creplace [char]1096, 's' -creplace \
346 [char]1040, 'A' -creplace [char]1041, 'B' -creplace [char]1042, 'V' -creplace \
347 [char]1043, 'G' -creplace [char]1044, 'D' -creplace [char]1026, 'Đ' -creplace \
348 [char]1045, 'E' -creplace [char]1046, 'Z' -creplace [char]1047, 'Z' -creplace \
349 [char]1048, 'I' -creplace [char]1032, 'J' -creplace [char]1050, 'K' -creplace \
350 [char]1051, 'L' -creplace [char]1033, 'Lj' -creplace [char]1052, 'M' -creplace \
351 [char]1053, 'N' -creplace [char]1034, 'Nj' -creplace [char]1054, 'O' -creplace \
352 [char]1055, 'P' -creplace [char]1056, 'R' -creplace [char]1057, 'S' -creplace \
353 [char]1058, 'T' -creplace [char]1035, 'C' -creplace [char]1059, 'U' -creplace \
354 [char]1060, 'F' -creplace [char]1061, 'H' -creplace [char]1062, 'C' -creplace \
355 [char]1063, 'C' -creplace [char]1039, 'Dz' -creplace [char]1064, 'S' ^| \
356 1>nul New-Item -Force -Path . -ItemType file -Name $@
357
358# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim.
359menu_sr_rs.iso_8859-2.vim : menu_sr_rs.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300360 -$(RM) $@
361 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$?\", \
Restorerab4f27e2023-11-18 16:12:20 +0000362 [System.Text.Encoding]::GetEncoding(65001)) -creplace \
363 [char]1072, 'a' -creplace [char]1073, 'b' -creplace [char]1074, 'v' -creplace \
364 [char]1075, 'g' -creplace [char]1076, 'd' -creplace [char]1106, [char]273 -creplace \
365 [char]1077, 'e' -creplace [char]1078, [char]382 -creplace [char]1079, 'z' -creplace \
366 [char]1080, 'i' -creplace [char]1112, 'j' -creplace [char]1082, 'k' -creplace \
367 [char]1083, 'l' -creplace [char]1113, 'lj' -creplace [char]1084, 'm' -creplace \
368 [char]1085, 'n' -creplace [char]1114, 'nj' -creplace [char]1086, 'o' -creplace \
369 [char]1087, 'p' -creplace [char]1088, 'r' -creplace [char]1089, 's' -creplace \
370 [char]1090, 't' -creplace [char]1115, [char]263 -creplace [char]1091, 'u' -creplace \
371 [char]1092, 'f' -creplace [char]1093, 'h' -creplace [char]1094, 'c' -creplace \
372 [char]1095, [char]269 -creplace [char]1119, 'dz' -creplace [char]1096, [char]353 -creplace \
373 [char]1040, 'A' -creplace [char]1041, 'B' -creplace [char]1042, 'V' -creplace \
374 [char]1043, 'G' -creplace [char]1044, 'D' -creplace [char]1026, 'Đ' -creplace \
375 [char]1045, 'E' -creplace [char]1046, [char]381 -creplace [char]1047, 'Z' -creplace \
376 [char]1048, 'I' -creplace [char]1032, 'J' -creplace [char]1050, 'K' -creplace \
377 [char]1051, 'L' -creplace [char]1033, 'Lj'-creplace [char]1052, 'M' -creplace \
378 [char]1053, 'N' -creplace [char]1034, 'Nj' -creplace [char]1054, 'O' -creplace \
379 [char]1055, 'P' -creplace [char]1056, 'R' -creplace [char]1057, 'S' -creplace \
380 [char]1058, 'T' -creplace [char]1035, [char]262 -creplace [char]1059, 'U' -creplace \
381 [char]1060, 'F' -creplace [char]1061, 'H' -creplace [char]1062, 'C' -creplace \
382 [char]1063, [char]268 -creplace [char]1039, 'Dz' -creplace [char]1064, [char]352 -replace \
383 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300384 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000385 [System.IO.File]::WriteAllText(\"$@\", $$out, [System.Text.Encoding]::GetEncoding(28592))
386
387# Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim.
388menu_sr_rs.iso_8859-5.vim : menu_sr_rs.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300389 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000390!IF DEFINED (ICONV)
391 $(ICONV) -f UTF-8 -t ISO-8859-5 $? >$@
392!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300393 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000394 [System.IO.File]::ReadAllText(\"$?\", \
395 [System.Text.Encoding]::GetEncoding(65001)), \
396 [System.Text.Encoding]::GetEncoding(28595))
397!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300398 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000399 [System.Text.Encoding]::GetEncoding(28595)) -replace \
400 'scriptencoding utf-8', 'scriptencoding iso-8859-5' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300401 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000402 [System.IO.File]::WriteAllText(\"$@\", $$out, \
403 [System.Text.Encoding]::GetEncoding(28595))
404
405# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim.
406menu_tr_tr.cp1254.vim : menu_tr_tr.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300407 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000408!IF DEFINED (ICONV)
409 $(ICONV) -f UTF-8 -t CP1254 $? >$@
410!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300411 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000412 [System.IO.File]::ReadAllText(\"$?\", \
413 [System.Text.Encoding]::GetEncoding(65001)), \
414 [System.Text.Encoding]::GetEncoding(1254))
415!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300416 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000417 [System.Text.Encoding]::GetEncoding(1254)) -replace \
418 'scriptencoding utf-8', 'scriptencoding cp1254' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300419 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000420 [System.IO.File]::WriteAllText(\"$@\", $$out, \
421 [System.Text.Encoding]::GetEncoding(1254))
422
423# Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim.
424menu_tr_tr.iso_8859-9.vim : menu_tr_tr.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300425 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000426!IF DEFINED (ICONV)
427 $(ICONV) -f UTF-8 -t ISO-8859-9 $? >$@
428!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300429 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000430 [System.IO.File]::ReadAllText(\"$?\", \
431 [System.Text.Encoding]::GetEncoding(65001)), \
432 [System.Text.Encoding]::GetEncoding(28599))
433!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300434 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000435 [System.Text.Encoding]::GetEncoding(28599)) -replace \
436 'scriptencoding utf-8', 'scriptencoding iso-8859-9' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300437 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000438 [System.IO.File]::WriteAllText(\"$@\", $$out, \
439 [System.Text.Encoding]::GetEncoding(28599))
440
441# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim.
442menu_uk_ua.cp1251.vim : menu_uk_ua.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300443 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000444!IF DEFINED (ICONV)
445 $(ICONV) -f UTF-8 -t CP1251 $? >$@
446!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300447 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000448 [System.IO.File]::ReadAllText(\"$?\", \
449 [System.Text.Encoding]::GetEncoding(65001)), \
450 [System.Text.Encoding]::GetEncoding(1251))
451!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300452 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000453 [System.Text.Encoding]::GetEncoding(1251)) -replace \
454 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300455 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000456 [System.IO.File]::WriteAllText(\"$@\", $$out, \
457 [System.Text.Encoding]::GetEncoding(1251))
458
459# Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim.
460menu_uk_ua.koi8-u.vim : menu_uk_ua.utf-8.vim
Restorere8ff5e62024-01-22 22:41:47 +0300461 -$(RM) $@
Restorerab4f27e2023-11-18 16:12:20 +0000462!IF DEFINED (ICONV)
463 $(ICONV) -f UTF-8 -t KOI8-U $? >$@
464!ELSE
Restorere8ff5e62024-01-22 22:41:47 +0300465 $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000466 [System.IO.File]::ReadAllText(\"$?\", \
467 [System.Text.Encoding]::GetEncoding(65001)), \
468 [System.Text.Encoding]::GetEncoding(21866))
469!ENDIF
Restorere8ff5e62024-01-22 22:41:47 +0300470 $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \
Restorerab4f27e2023-11-18 16:12:20 +0000471 [System.Text.Encoding]::GetEncoding(21866)) -replace \
472 'scriptencoding utf-8', 'scriptencoding koi8-u' -replace \
Restorere8ff5e62024-01-22 22:41:47 +0300473 ' Original translations', ' Generated from $?, DO NOT EDIT'; \
Restorerab4f27e2023-11-18 16:12:20 +0000474 [System.IO.File]::WriteAllText(\"$@\", $$out, \
475 [System.Text.Encoding]::GetEncoding(21866))
476
Restorere8ff5e62024-01-22 22:41:47 +0300477clean :
478 @for %%G in ($(CONVERTED)) do (if exist .\%%G ($(RM) %%G))
479
Restorerab4f27e2023-11-18 16:12:20 +0000480# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: