Makefile (9765B)
1 # Author: Ada (Haowen) Yu <me@yuhaowen.com> 2 3 # Common components 4 include Make_all.mak 5 6 SED = LANG=C sed 7 8 .PHONY: all clean 9 10 all: $(CONVERTED) 11 12 13 # Convert menu_zh_cn.utf-8.vim to create menu_chinese_gb.936.vim. 14 menu_chinese_gb.936.vim: menu_zh_cn.utf-8.vim 15 rm -f $@ 16 iconv -f UTF-8 -t CP936 $? | \ 17 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp936/' \ 18 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 19 > $@ 20 21 # Convert menu_zh_tw.utf-8.vim to create menu_chinese_taiwan.950.vim. 22 menu_chinese_taiwan.950.vim: menu_zh_tw.utf-8.vim 23 rm -f $@ 24 iconv -f UTF-8 -t CP950 $? | \ 25 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp950/' \ 26 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 27 > $@ 28 29 # Convert menu_cs_cz.utf-8.vim to create menu_cs_cz.iso_8859-2.vim. 30 menu_cs_cz.iso_8859-2.vim: menu_cs_cz.utf-8.vim 31 rm -f $@ 32 iconv -f UTF-8 -t ISO-8859-2 $? | \ 33 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ 34 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 35 -e 's/\(" Menu Translations:.*\)(.*)/\1(ISO-8859-2)/' \ 36 > $@ 37 38 # Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.1250.vim. 39 menu_czech_czech_republic.1250.vim: menu_cs_cz.utf-8.vim 40 rm -f $@ 41 iconv -f UTF-8 -t CP1250 $? | \ 42 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ 43 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 44 -e 's/\(" Menu Translations:.*\)(.*)/\1(CP1250)/' \ 45 > $@ 46 47 # Convert menu_cs_cz.utf-8.vim to create menu_czech_czech_republic.ascii.vim. 48 menu_czech_czech_republic.ascii.vim: menu_cs_cz.utf-8.vim 49 rm -f $@ 50 $(SED) -e 's/Á/A/g' -e 's/á/a/g' -e 's/Č/C/g' -e 's/č/c/g' -e 's/Ď/D/g' \ 51 -e 's/ď/d/g' -e 's/É/E/g' -e 's/é/e/g' -e 's/Ě/E/g' -e 's/ě/e/g' \ 52 -e 's/Í/I/g' -e 's/í/i/g' -e 's/Ň/N/g' -e 's/ň/n/g' -e 's/Ó/O/g' \ 53 -e 's/ó/o/g' -e 's/Ř/R/g' -e 's/ř/r/g' -e 's/Š/S/g' -e 's/š/s/g' \ 54 -e 's/Ť/T/g' -e 's/ť/t/g' -e 's/Ú/U/g' -e 's/ú/u/g' -e 's/Ů/U/g' \ 55 -e 's/ů/u/g' -e 's/Ý/Y/g' -e 's/ý/y/g' -e 's/Ž/Z/g' -e 's/ž/z/g' \ 56 -e 's/scriptencoding utf-8/scriptencoding latin1/' \ 57 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 58 -e 's/\(" Menu Translations:.*\)(.*)/\1(ASCII - without diacritics)/' \ 59 $? > $@ 60 61 # Convert menu_ja_jp.utf-8.vim to create menu_ja_jp.euc-jp.vim. 62 menu_ja_jp.euc-jp.vim: menu_ja_jp.utf-8.vim 63 rm -f $@ 64 iconv -f UTF-8 -t EUC-JP $? | \ 65 $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \ 66 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 67 -e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \ 68 > $@ 69 70 # Convert menu_ja_jp.utf-8.vim to create menu_japanese_japan.932.vim. 71 menu_japanese_japan.932.vim: menu_ja_jp.utf-8.vim 72 rm -f $@ 73 iconv -f UTF-8 -t CP932 $? | \ 74 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \ 75 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 76 -e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \ 77 > $@ 78 79 # Convert menu_ko_kr.utf-8.vim to create menu_ko_kr.euckr.vim. 80 menu_ko_kr.euckr.vim: menu_ko_kr.utf-8.vim 81 rm -f $@ 82 iconv -f UTF-8 -t EUC-KR $? | \ 83 $(SED) -e 's/scriptencoding utf-8/scriptencoding euc-kr/' \ 84 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 85 > $@ 86 87 # Convert menu_pl_pl.utf-8.vim to create menu_pl_pl.iso_8859-2.vim. 88 menu_pl_pl.iso_8859-2.vim: menu_pl_pl.utf-8.vim 89 rm -f $@ 90 iconv -f UTF-8 -t ISO-8859-2 $? | \ 91 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ 92 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 93 > $@ 94 95 # Convert menu_pl_pl.utf-8.vim to create menu_polish_poland.1250.vim. 96 menu_polish_poland.1250.vim: menu_pl_pl.utf-8.vim 97 rm -f $@ 98 iconv -f UTF-8 -t CP1250 $? | \ 99 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ 100 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 101 > $@ 102 103 # Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.koi8-r.vim. 104 menu_ru_ru.koi8-r.vim: menu_ru_ru.utf-8.vim 105 rm -f $@ 106 iconv -f UTF-8 -t KOI8-R $? | \ 107 $(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-r/' \ 108 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 109 > $@ 110 111 # Convert menu_ru_ru.utf-8.vim to create menu_ru_ru.cp1251.vim. 112 menu_ru_ru.cp1251.vim: menu_ru_ru.utf-8.vim 113 rm -f $@ 114 iconv -f UTF-8 -t CP1251 $? | \ 115 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \ 116 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 117 > $@ 118 119 # Convert menu_sl_si.utf-8.vim to create menu_sl_si.cp1250.vim. 120 menu_sl_si.cp1250.vim: menu_sl_si.utf-8.vim 121 rm -f $@ 122 iconv -f UTF-8 -t CP1250 $? | \ 123 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1250/' \ 124 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 125 > $@ 126 127 # for naming encodings, see `:h encoding-names` 128 # Convert menu_sl_si.utf-8.vim to create menu_sl_si.latin2.vim. 129 menu_sl_si.latin2.vim: menu_sl_si.utf-8.vim 130 rm -f $@ 131 iconv -f UTF-8 -t ISO-8859-2 $? | \ 132 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ 133 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 134 > $@ 135 136 # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.cp1254.vim. 137 menu_tr_tr.cp1254.vim: menu_tr_tr.utf-8.vim 138 rm -f $@ 139 iconv -f UTF-8 -t CP1254 $? | \ 140 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1254/' \ 141 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 142 > $@ 143 144 # Convert menu_tr_tr.utf-8.vim to create menu_tr_tr.iso_8859-9.vim. 145 menu_tr_tr.iso_8859-9.vim: menu_tr_tr.utf-8.vim 146 rm -f $@ 147 iconv -f UTF-8 -t ISO-8859-9 $? | \ 148 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-9/' \ 149 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 150 > $@ 151 152 # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-5.vim. 153 menu_sr_rs.iso_8859-5.vim: menu_sr_rs.utf-8.vim 154 rm -f $@ 155 iconv -f UTF-8 -t ISO-8859-5 $? | \ 156 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-5/' \ 157 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 158 > $@ 159 160 # for naming encodings, see `:h encoding-names` 161 # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.iso_8859-2.vim. 162 menu_sr_rs.iso_8859-2.vim: menu_sr_rs.utf-8.vim 163 rm -f $@ 164 $(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \ 165 -e 's/ђ/đ/g' -e 's/е/e/g' -e 's/ж/ž/g' -e 's/з/z/g' -e 's/и/i/g' \ 166 -e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \ 167 -e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \ 168 -e 's/с/s/g' -e 's/т/t/g' -e 's/ћ/ć/g' -e 's/у/u/g' -e 's/ф/f/g' \ 169 -e 's/х/h/g' -e 's/ц/c/g' -e 's/ч/č/g' -e 's/џ/dž/g' -e 's/ш/š/g' \ 170 -e 's/А/A/g' -e 's/Б/B/g' -e 's/В/V/g' -e 's/Г/G/g' -e 's/Д/D/g' \ 171 -e 's/Ђ/Đ/g' -e 's/Е/E/g' -e 's/Ж/Ž/g' -e 's/З/Z/g' -e 's/И/I/g' \ 172 -e 's/Ј/J/g' -e 's/К/K/g' -e 's/Л/L/g' -e 's/Љ/Lj/g' -e 's/М/M/g' \ 173 -e 's/Н/N/g' -e 's/Њ/Nj/g' -e 's/О/O/g' -e 's/П/P/g' -e 's/Р/R/g' \ 174 -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/Ć/g' -e 's/У/U/g' -e 's/Ф/F/g' \ 175 -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/Č/g' -e 's/Џ/Dž/g' -e 's/Ш/Š/g' \ 176 -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ 177 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 178 $? | iconv -f UTF-8 -t ISO-8859-2 \ 179 > $@ 180 181 # Convert menu_sr_rs.utf-8.vim to create menu_sr_rs.ascii.vim. 182 menu_sr_rs.ascii.vim: menu_sr_rs.utf-8.vim 183 rm -f $@ 184 $(SED) -e 's/а/a/g' -e 's/б/b/g' -e 's/в/v/g' -e 's/г/g/g' -e 's/д/d/g' \ 185 -e 's/ђ/dj/g' -e 's/е/e/g' -e 's/ж/z/g' -e 's/з/z/g' -e 's/и/i/g' \ 186 -e 's/ј/j/g' -e 's/к/k/g' -e 's/л/l/g' -e 's/љ/lj/g' -e 's/м/m/g' \ 187 -e 's/н/n/g' -e 's/њ/nj/g' -e 's/о/o/g' -e 's/п/p/g' -e 's/р/r/g' \ 188 -e 's/с/s/g' -e 's/т/t/g' -e 's/ћ/c/g' -e 's/у/u/g' -e 's/ф/f/g' \ 189 -e 's/х/h/g' -e 's/ц/c/g' -e 's/ч/c/g' -e 's/џ/dz/g' -e 's/ш/s/g' \ 190 -e 's/А/A/g' -e 's/Б/B/g' -e 's/В/V/g' -e 's/Г/G/g' -e 's/Д/D/g' \ 191 -e 's/Ђ/Đ/g' -e 's/Е/E/g' -e 's/Ж/Z/g' -e 's/З/Z/g' -e 's/И/I/g' \ 192 -e 's/Ј/J/g' -e 's/К/K/g' -e 's/Л/L/g' -e 's/Љ/Lj/g' -e 's/М/M/g' \ 193 -e 's/Н/N/g' -e 's/Њ/Nj/g' -e 's/О/O/g' -e 's/П/P/g' -e 's/Р/R/g' \ 194 -e 's/С/S/g' -e 's/Т/T/g' -e 's/Ћ/C/g' -e 's/У/U/g' -e 's/Ф/F/g' \ 195 -e 's/Х/H/g' -e 's/Ц/C/g' -e 's/Ч/C/g' -e 's/Џ/Dz/g' -e 's/Ш/S/g' \ 196 -e 's/scriptencoding utf-8/scriptencoding latin1/' \ 197 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 198 $? > $@ 199 200 # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.cp1251.vim. 201 menu_uk_ua.cp1251.vim: menu_uk_ua.utf-8.vim 202 rm -f $@ 203 iconv -f UTF-8 -t CP1251 $? | \ 204 $(SED) -e 's/scriptencoding utf-8/scriptencoding cp1251/' \ 205 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 206 > $@ 207 208 # Convert menu_uk_ua.utf-8.vim to create menu_uk_ua.koi8-u.vim. 209 menu_uk_ua.koi8-u.vim: menu_uk_ua.utf-8.vim 210 rm -f $@ 211 iconv -f UTF-8 -t KOI8-U $? | \ 212 $(SED) -e 's/scriptencoding utf-8/scriptencoding koi8-u/' \ 213 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 214 > $@ 215 216 # Convert menu_hu_hu.utf-8.vim to create menu_hu_hu.iso_8859-2.vim. 217 menu_hu_hu.iso_8859-2.vim: menu_hu_hu.utf-8.vim 218 rm -f $@ 219 iconv -f UTF-8 -t ISO-8859-2 $? | \ 220 $(SED) -e 's/scriptencoding utf-8/scriptencoding iso-8859-2/' \ 221 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 222 > $@ 223 224 # Convert menu_slovak_slovak_republic.1250.vim to create menu_sk_sk.iso_8859-2.vim. 225 menu_sk_sk.iso_8859-2.vim: menu_slovak_slovak_republic.1250.vim 226 rm -f $@ 227 iconv -f CP1250 -t ISO-8859-2 $? | \ 228 $(SED) -e 's/scriptencoding cp1250/scriptencoding iso-8859-2/' \ 229 -e 's/" Original translations/" Generated from $?, DO NOT EDIT/' \ 230 > $@ 231 232 clean: 233 for G in $(CONVERTED); do if [ -f $$G ]; then rm -f $$G; fi; done 234 # -rm -f $(CONVERTED)