Makefile 12 KB

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