Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 1 | # |
| 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 | |
Restorer | 8c14e79 | 2023-11-25 14:39:51 +0000 | [diff] [blame] | 13 | # Correct the following line for the directory where iconv is installed. |
| 14 | # Please do not put the path in quotes. |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 15 | ICONV_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") |
Restorer | 8c14e79 | 2023-11-25 14:39:51 +0000 | [diff] [blame] | 22 | ICONV = "iconv.exe" |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 23 | !ELSEIF EXIST ("$(ICONV_PATH)\iconv.exe") |
Restorer | 8c14e79 | 2023-11-25 14:39:51 +0000 | [diff] [blame] | 24 | ICONV = "$(ICONV_PATH)\iconv.exe" |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 25 | !ENDIF |
| 26 | |
| 27 | RM = del /q |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 28 | PS = PowerShell.exe |
| 29 | |
| 30 | PSFLAGS = -NoLogo -NoProfile -Command |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 31 | |
| 32 | |
| 33 | all : $(CONVERTED) |
| 34 | |
| 35 | # Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim. |
| 36 | menu_chinese_gb.936.vim : menu_zh_cn.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 37 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 38 | !IF DEFINED (ICONV) |
| 39 | $(ICONV) -f UTF-8 -t CP936 $? >$@ |
| 40 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 41 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 42 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 43 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 44 | [System.Text.Encoding]::GetEncoding(936)) |
| 45 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 46 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 47 | [System.Text.Encoding]::GetEncoding(936)) -replace \ |
| 48 | 'scriptencoding utf-8', 'scriptencoding cp936' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 49 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 50 | [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. |
| 54 | menu_chinese_taiwan.950.vim : menu_zh_tw.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 55 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 56 | !IF DEFINED (ICONV) |
| 57 | $(ICONV) -f UTF-8 -t CP950 $? >$@ |
| 58 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 59 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 60 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 61 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 62 | [System.Text.Encoding]::GetEncoding(950)) |
| 63 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 64 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 65 | [System.Text.Encoding]::GetEncoding(950)) -replace \ |
| 66 | 'scriptencoding utf-8', 'scriptencoding cp950' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 67 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 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. |
| 72 | menu_cs_cz.iso_8859-2.vim : menu_cs_cz.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 73 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 74 | !IF DEFINED (ICONV) |
| 75 | $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@ |
| 76 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 77 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 78 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 79 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 80 | [System.Text.Encoding]::GetEncoding(28592)) |
| 81 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 82 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 83 | [System.Text.Encoding]::GetEncoding(28592)) -replace \ |
| 84 | ' Czech \(UTF-8\)', ' Czech (ISO-8859-2)' -replace \ |
| 85 | \"scriptencoding utf-8\", \"scriptencoding iso-8859-2\" -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 86 | \" Original translations\", \" Generated from $?, DO NOT EDIT\"; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 87 | [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. |
| 91 | menu_czech_czech_republic.1250.vim : menu_cs_cz.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 92 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 93 | !IF DEFINED (ICONV) |
| 94 | $(ICONV) -f UTF-8 -t CP1250 $? >$@ |
| 95 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 96 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 97 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 98 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 99 | [System.Text.Encoding]::GetEncoding(1250)) |
| 100 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 101 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 102 | [System.Text.Encoding]::GetEncoding(1250)) -replace \ |
| 103 | ' Czech \(UTF-8\)', ' Czech (CP1250)' -replace \ |
| 104 | \"scriptencoding utf-8\", \"scriptencoding cp1250\" -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 105 | \" Original translations\", \" Generated from $?, DO NOT EDIT\"; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 106 | [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. |
| 110 | menu_czech_czech_republic.ascii.vim : menu_cs_cz.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 111 | -$(RM) $@ |
| 112 | $(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 113 | [System.Text.Encoding]::GetEncoding(65001)) -replace \ |
| 114 | 'scriptencoding utf-8', 'scriptencoding latin1' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 115 | ' Original translations', ' Generated from $?, DO NOT EDIT' -replace \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 116 | '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. |
| 130 | menu_hu_hu.iso_8859-2.vim : menu_hu_hu.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 131 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 132 | !IF DEFINED (ICONV) |
| 133 | $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@ |
| 134 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 135 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 136 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 137 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 138 | [System.Text.Encoding]::GetEncoding(28592)) |
| 139 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 140 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 141 | [System.Text.Encoding]::GetEncoding(28592)) -replace \ |
| 142 | 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 143 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 144 | [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. |
| 148 | menu_ja_jp.euc-jp.vim : menu_ja_jp.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 149 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 150 | !IF DEFINED (ICONV) |
| 151 | $(ICONV) -f UTF-8 -t EUC-JP $? >$@ |
| 152 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 153 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 154 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 155 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 156 | [System.Text.Encoding]::GetEncoding(51932)) |
| 157 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 158 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 159 | [System.Text.Encoding]::GetEncoding(51932)) -replace \ |
| 160 | 'Japanese \(UTF-8\)', 'Japanese (EUC-JP)' -replace \ |
| 161 | 'scriptencoding utf-8', 'scriptencoding euc-jp' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 162 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 163 | [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. |
| 167 | menu_japanese_japan.932.vim : menu_ja_jp.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 168 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 169 | !IF DEFINED (ICONV) |
| 170 | $(ICONV) -f UTF-8 -t CP932 $? >$@ |
| 171 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 172 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 173 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 174 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 175 | [System.Text.Encoding]::GetEncoding(932)) |
| 176 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 177 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 178 | [System.Text.Encoding]::GetEncoding(932)) -replace \ |
| 179 | 'Japanese \(UTF-8\)', 'Japanese (CP932)' -replace \ |
| 180 | 'scriptencoding utf-8', 'scriptencoding cp932' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 181 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 182 | [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. |
| 186 | menu_ko_kr.euckr.vim : menu_ko_kr.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 187 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 188 | !IF DEFINED (ICONV) |
| 189 | $(ICONV) -f UTF-8 -t EUC-KR $? >$@ |
| 190 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 191 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 192 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 193 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 194 | [System.Text.Encoding]::GetEncoding(51949)) |
| 195 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 196 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 197 | [System.Text.Encoding]::GetEncoding(51949)) -replace \ |
| 198 | 'scriptencoding utf-8', 'scriptencoding euc-kr' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 199 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 200 | [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. |
| 204 | menu_pl_pl.iso_8859-2.vim : menu_pl_pl.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 205 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 206 | !IF DEFINED (ICONV) |
| 207 | $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@ |
| 208 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 209 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 210 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 211 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 212 | [System.Text.Encoding]::GetEncoding(28592)) |
| 213 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 214 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 215 | [System.Text.Encoding]::GetEncoding(28592)) -replace \ |
| 216 | 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 217 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 218 | [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. |
| 222 | menu_polish_poland.1250.vim : menu_pl_pl.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 223 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 224 | !IF DEFINED (ICONV) |
| 225 | $(ICONV) -f UTF-8 -t CP1250 $? >$@ |
| 226 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 227 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 228 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 229 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 230 | [System.Text.Encoding]::GetEncoding(1250)) |
| 231 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 232 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 233 | [System.Text.Encoding]::GetEncoding(1250)) -replace \ |
| 234 | 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 235 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 236 | [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. |
| 240 | menu_ru_ru.cp1251.vim : menu_ru_ru.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 241 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 242 | !IF DEFINED (ICONV) |
| 243 | $(ICONV) -f UTF-8 -t CP1251 $? >$@ |
| 244 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 245 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 246 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 247 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 248 | [System.Text.Encoding]::GetEncoding(1251)) |
| 249 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 250 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 251 | [System.Text.Encoding]::GetEncoding(1251)) -replace \ |
| 252 | 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 253 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 254 | [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. |
| 258 | menu_ru_ru.koi8-r.vim : menu_ru_ru.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 259 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 260 | !IF DEFINED (ICONV) |
| 261 | $(ICONV) -f UTF-8 -t KOI8-R $? >$@ |
| 262 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 263 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 264 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 265 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 266 | [System.Text.Encoding]::GetEncoding(20866)) |
| 267 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 268 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 269 | [System.Text.Encoding]::GetEncoding(20866)) -replace \ |
| 270 | 'scriptencoding utf-8', 'scriptencoding koi8-r' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 271 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 272 | [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. |
| 276 | menu_sk_sk.iso_8859-2.vim : menu_slovak_slovak_republic.1250.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 277 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 278 | !IF DEFINED (ICONV) |
| 279 | $(ICONV) -f CP1250 -t ISO-8859-2 $? >$@ |
| 280 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 281 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 282 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 283 | [System.Text.Encoding]::GetEncoding(1250)), \ |
| 284 | [System.Text.Encoding]::GetEncoding(28592)) |
| 285 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 286 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 287 | [System.Text.Encoding]::GetEncoding(28592)) -replace \ |
| 288 | 'scriptencoding cp1250', 'scriptencoding iso-8859-2' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 289 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 290 | [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. |
| 294 | menu_sl_si.cp1250.vim : menu_sl_si.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 295 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 296 | !IF DEFINED (ICONV) |
| 297 | $(ICONV) -f UTF-8 -t CP1250 $? >$@ |
| 298 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 299 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 300 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 301 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 302 | [System.Text.Encoding]::GetEncoding(1250)) |
| 303 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 304 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 305 | [System.Text.Encoding]::GetEncoding(1250)) -replace \ |
| 306 | 'scriptencoding utf-8', 'scriptencoding cp1250' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 307 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 308 | [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. |
| 312 | menu_sl_si.latin2.vim : menu_sl_si.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 313 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 314 | !IF DEFINED (ICONV) |
| 315 | $(ICONV) -f UTF-8 -t ISO-8859-2 $? >$@ |
| 316 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 317 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 318 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 319 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 320 | [System.Text.Encoding]::GetEncoding(28592)) |
| 321 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 322 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 323 | [System.Text.Encoding]::GetEncoding(28592)) -replace \ |
| 324 | 'scriptencoding utf-8', 'scriptencoding iso-8859-2' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 325 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 326 | [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. |
| 330 | menu_sr_rs.ascii.vim : menu_sr_rs.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 331 | -$(RM) $@ |
| 332 | $(PS) $(PSFLAGS) [System.IO.File]::ReadAllText(\"$?\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 333 | [System.Text.Encoding]::GetEncoding(65001)) -replace \ |
| 334 | 'scriptencoding utf-8', 'scriptencoding latin1' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 335 | ' Original translations', ' Generated from $?, DO NOT EDIT' -creplace \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 336 | [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. |
| 359 | menu_sr_rs.iso_8859-2.vim : menu_sr_rs.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 360 | -$(RM) $@ |
| 361 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$?\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 362 | [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 \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 384 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 385 | [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. |
| 388 | menu_sr_rs.iso_8859-5.vim : menu_sr_rs.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 389 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 390 | !IF DEFINED (ICONV) |
| 391 | $(ICONV) -f UTF-8 -t ISO-8859-5 $? >$@ |
| 392 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 393 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 394 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 395 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 396 | [System.Text.Encoding]::GetEncoding(28595)) |
| 397 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 398 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 399 | [System.Text.Encoding]::GetEncoding(28595)) -replace \ |
| 400 | 'scriptencoding utf-8', 'scriptencoding iso-8859-5' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 401 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 402 | [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. |
| 406 | menu_tr_tr.cp1254.vim : menu_tr_tr.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 407 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 408 | !IF DEFINED (ICONV) |
| 409 | $(ICONV) -f UTF-8 -t CP1254 $? >$@ |
| 410 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 411 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 412 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 413 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 414 | [System.Text.Encoding]::GetEncoding(1254)) |
| 415 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 416 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 417 | [System.Text.Encoding]::GetEncoding(1254)) -replace \ |
| 418 | 'scriptencoding utf-8', 'scriptencoding cp1254' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 419 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 420 | [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. |
| 424 | menu_tr_tr.iso_8859-9.vim : menu_tr_tr.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 425 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 426 | !IF DEFINED (ICONV) |
| 427 | $(ICONV) -f UTF-8 -t ISO-8859-9 $? >$@ |
| 428 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 429 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 430 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 431 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 432 | [System.Text.Encoding]::GetEncoding(28599)) |
| 433 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 434 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 435 | [System.Text.Encoding]::GetEncoding(28599)) -replace \ |
| 436 | 'scriptencoding utf-8', 'scriptencoding iso-8859-9' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 437 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 438 | [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. |
| 442 | menu_uk_ua.cp1251.vim : menu_uk_ua.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 443 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 444 | !IF DEFINED (ICONV) |
| 445 | $(ICONV) -f UTF-8 -t CP1251 $? >$@ |
| 446 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 447 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 448 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 449 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 450 | [System.Text.Encoding]::GetEncoding(1251)) |
| 451 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 452 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 453 | [System.Text.Encoding]::GetEncoding(1251)) -replace \ |
| 454 | 'scriptencoding utf-8', 'scriptencoding cp1251' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 455 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 456 | [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. |
| 460 | menu_uk_ua.koi8-u.vim : menu_uk_ua.utf-8.vim |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 461 | -$(RM) $@ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 462 | !IF DEFINED (ICONV) |
| 463 | $(ICONV) -f UTF-8 -t KOI8-U $? >$@ |
| 464 | !ELSE |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 465 | $(PS) $(PSFLAGS) [System.IO.File]::WriteAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 466 | [System.IO.File]::ReadAllText(\"$?\", \ |
| 467 | [System.Text.Encoding]::GetEncoding(65001)), \ |
| 468 | [System.Text.Encoding]::GetEncoding(21866)) |
| 469 | !ENDIF |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 470 | $(PS) $(PSFLAGS) $$out = [System.IO.File]::ReadAllText(\"$@\", \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 471 | [System.Text.Encoding]::GetEncoding(21866)) -replace \ |
| 472 | 'scriptencoding utf-8', 'scriptencoding koi8-u' -replace \ |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 473 | ' Original translations', ' Generated from $?, DO NOT EDIT'; \ |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 474 | [System.IO.File]::WriteAllText(\"$@\", $$out, \ |
| 475 | [System.Text.Encoding]::GetEncoding(21866)) |
| 476 | |
Restorer | e8ff5e6 | 2024-01-22 22:41:47 +0300 | [diff] [blame] | 477 | clean : |
| 478 | @for %%G in ($(CONVERTED)) do (if exist .\%%G ($(RM) %%G)) |
| 479 | |
Restorer | ab4f27e | 2023-11-18 16:12:20 +0000 | [diff] [blame] | 480 | # vim: set noet sw=8 ts=8 sts=0 wm=0 tw=0 ft=make: |