Skip to content

Commit

Permalink
Update runtime/lang/Makefile
Browse files Browse the repository at this point in the history
Import the latest changes from vim/vim.
  • Loading branch information
k-takata committed Nov 28, 2023
1 parent 7c2a74e commit 267a645
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions runtime/lang/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
MASTER_MENU = menu_ja_jp.utf-8.vim

SED = LANG=C sed

test: update

update: menu_ja_jp.euc-jp.vim menu_japanese_japan.932.vim

menu_ja_jp.euc-jp.vim: $(MASTER_MENU)
iconv -f utf-8 -t euc-jp $< | \
sed -e 's/^scriptencoding utf-8/scriptencoding euc-jp/' \
-e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
-e 's/Menu Translations:\tJapanese (UTF-8)/Menu Translations:\tJapanese (EUC-JP)/' \
> $@
iconv -f UTF-8 -t EUC-JP $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding euc-jp/' \
-e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
-e 's/\(" Menu Translations:.*\)(.*)/\1(EUC-JP)/' \
> $@

menu_japanese_japan.932.vim: $(MASTER_MENU)
iconv -f utf-8 -t cp932 $< | \
sed -e 's/^scriptencoding utf-8/scriptencoding cp932/' \
-e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
-e 's/Menu Translations:\tJapanese (UTF-8)/Menu Translations:\tJapanese (CP932)/' \
> $@
iconv -f UTF-8 -t CP932 $< | \
$(SED) -e 's/scriptencoding utf-8/scriptencoding cp932/' \
-e 's/" Original translations/" Generated from $<, DO NOT EDIT/' \
-e 's/\(" Menu Translations:.*\)(.*)/\1(CP932)/' \
> $@

force: touch
@$(MAKE) update
Expand Down

0 comments on commit 267a645

Please sign in to comment.