File tree Expand file tree Collapse file tree 5 files changed +79
-9
lines changed Expand file tree Collapse file tree 5 files changed +79
-9
lines changed Original file line number Diff line number Diff line change 1
1
/src /po /* .po.bak
2
2
/src /po /* .po.old
3
- /src /po /vim.pot
4
- /src /po /sjiscorr.exe
5
3
/src /po /sjiscorr
4
+ /src /po /sjiscorr.exe
5
+ /src /po /vim.pot
6
+ /vim-lang-ja * .tar.gz
7
+ /vim-lang-ja * .tar.bz2
8
+ /vim-lang-ja * .tar.xz
9
+ /vim-lang-ja * /
Original file line number Diff line number Diff line change
1
+ ARCHIVE = vim-lang-ja
2
+ ARCHIVE_EXT = xz
3
+ ARCHIVE_DIR = $(ARCHIVE )
4
+ ARCHIVE_FILE = $(ARCHIVE ) .tar.$(ARCHIVE_EXT )
5
+
6
+ archive : $(ARCHIVE_FILE )
7
+
8
+ release : force-update-all
9
+ @rm -rf $(ARCHIVE_DIR ) $(ARCHIVE_FILE )
10
+ $(MAKE ) $(ARCHIVE_FILE )
11
+ rm -rf $(ARCHIVE_DIR )
12
+
13
+ clean :
14
+ rm -rf $(ARCHIVE_DIR ) $(ARCHIVE_FILE )
15
+
16
+ distclean : clean
17
+ rm -f * .tar.bz2 * .tar.gz * .tar.xz
18
+
19
+ force-update-all : force-update-po force-update-lang
20
+
21
+ force-update-po :
22
+ cd src/po && $(MAKE ) force
23
+
24
+ force-update-lang :
25
+ cd runtime/lang && $(MAKE ) force
26
+
27
+ $(ARCHIVE_DIR ) :
28
+ mkdir -p $@ /src/po
29
+ mkdir -p $@ /runtime/lang
30
+ mkdir -p $@ /runtime/doc
31
+ cp src/po/* .po $@ /src/po
32
+ cp runtime/lang/menu_ja* .vim $@ /runtime/lang
33
+ cp runtime/doc/* .UTF-8.1 $@ /runtime/doc
34
+
35
+ $(ARCHIVE ) .tar.gz : $(ARCHIVE_DIR )
36
+ tar -czf $@ $<
37
+
38
+ $(ARCHIVE ) .tar.bz2 : $(ARCHIVE_DIR )
39
+ tar -cjf $@ $<
40
+
41
+ $(ARCHIVE ) .tar.xz : $(ARCHIVE_DIR )
42
+ tar -cJf $@ $<
Original file line number Diff line number Diff line change @@ -88,3 +88,13 @@ src/po/ 及び runtime/lang/ 配下の、上記以外のファイルは基本的
88
88
4 . コミット
89
89
90
90
原文と日本語訳は常に同じバージョンがコミットされているように注意すること。
91
+
92
+ ## リリース手順
93
+
94
+ 以下を実行してください。
95
+
96
+ $ make release ARCHIVE=vim-lang-ja-`date +%Y%m%d`
97
+
98
+ ` vim-lang-ja-20160131.tar.xz ` のようなアーカイブファイルができます。
99
+ ` 20160131 ` の部分は実行した日付に置き換わります。
100
+ あとはこのアーカイブファイルを vim-dev へ更新依頼とともに送信します。
Original file line number Diff line number Diff line change 1
1
MASTER_MENU = menu_ja_jp.utf-8.vim
2
2
3
- default : menu_ja_jp.euc-jp.vim menu_japanese_japan.932.vim
3
+ update : menu_ja_jp.euc-jp.vim menu_japanese_japan.932.vim
4
4
5
5
menu_ja_jp.euc-jp.vim : $(MASTER_MENU )
6
6
iconv -f utf-8 -t euc-jp $< | \
@@ -9,3 +9,9 @@ menu_ja_jp.euc-jp.vim: $(MASTER_MENU)
9
9
menu_japanese_japan.932.vim : $(MASTER_MENU )
10
10
iconv -f utf-8 -t cp932 $< | \
11
11
sed -e ' s/^scriptencoding utf-8/scriptencoding cp932/' -e ' s/Menu Translations:\tJapanese (UTF-8)/Menu Translations:\tJapanese (CP932)/' > $@
12
+
13
+ force : touch
14
+ @$(MAKE ) update
15
+
16
+ touch : $(MASTER_MENU )
17
+ touch $<
Original file line number Diff line number Diff line change 1
- default : ja.sjis.po ja.euc-jp .po
1
+ MASTER_PO = ja.po
2
2
3
- ja.sjis.po : ja.po
3
+ update : ja.sjis.po ja.euc-jp.po
4
+
5
+ ja.sjis.po : $(MASTER_PO )
4
6
@$(MAKE ) sjiscorr
5
7
rm -f ja.sjis.po
6
- iconv -f utf-8 -t cp932 ja.po | ./sjiscorr > ja.sjis.po
8
+ iconv -f utf-8 -t cp932 $< | ./sjiscorr > ja.sjis.po
7
9
8
- ja.euc-jp.po : ja.po
9
- iconv -f utf-8 -t euc-jp ja.po | \
10
- sed -e ' s/charset=utf-8/charset=euc-jp/' -e ' s/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
10
+ ja.euc-jp.po : $( MASTER_PO )
11
+ iconv -f utf-8 -t euc-jp $< | \
12
+ sed -e ' s/charset=utf-8/charset=euc-jp/' -e ' s/# Original translations/# Generated from ja.po, DO NOT EDIT/' > ja.euc-jp.po
11
13
12
14
sjiscorr : sjiscorr.c
13
15
$(CC ) -o sjiscorr sjiscorr.c
14
16
17
+ force : touch
18
+ @$(MAKE ) update
19
+
20
+ touch : $(MASTER_PO )
21
+ touch $<
22
+
15
23
clean :
16
24
rm -f sjiscorr sjiscorr.exe
You can’t perform that action at this time.
0 commit comments