Skip to content

Commit 70eee0f

Browse files
authoredMay 5, 2019
Merge pull request #111 from vim-jp/release-only-po
Make it possible to release only po files
2 parents 644753a + 3cdb516 commit 70eee0f

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
 

‎src/po/.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@
88
/sjiscorr
99
/sjiscorr.exe
1010
/vim.pot
11+
/vim-lang-ja-po*.tar.gz
12+
/vim-lang-ja-po*.tar.bz2
13+
/vim-lang-ja-po*.tar.xz

‎src/po/Makefile

+34
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
ARCHIVE = vim-lang-ja-po
2+
ARCHIVE_EXT = xz
3+
ARCHIVE_DIR = $(ARCHIVE)
4+
ARCHIVE_FILE = $(ARCHIVE).tar.$(ARCHIVE_EXT)
5+
16
MASTER_PO = ja.po
27

8+
POFILES = ja.po \
9+
ja.euc-jp.po \
10+
ja.sjis.po
11+
312
MOFILES = ja.mo \
413
ja.euc-jp.mo \
514
ja.sjis.mo
@@ -16,6 +25,15 @@ VIM = vim
1625

1726
test: check $(MOFILES)
1827

28+
release:
29+
@rm -rf $(ARCHIVE_DIR) $(ARCHIVE_FILE)
30+
$(MAKE) test
31+
$(MAKE) $(ARCHIVE_FILE)
32+
rm -rf $(ARCHIVE_DIR)
33+
34+
release-today:
35+
$(MAKE) release ARCHIVE=vim-lang-ja-po-`date +%Y%m%d`
36+
1937
update: ja.sjis.po ja.euc-jp.po
2038

2139
ja.sjis.po: $(MASTER_PO)
@@ -50,6 +68,9 @@ clean: checkclean
5068
rm -f ja.sjis.po ja.euc-jp.po
5169
rm -f *.mo
5270

71+
distclean: clean
72+
rm -f *.tar.bz2 *.tar.gz *.tar.xz
73+
5374
#ja.po: vim.pot
5475
# rm -f $@.old
5576
# mv $@ $@.old
@@ -67,3 +88,16 @@ check: $(CHECKFILES)
6788

6889
checkclean:
6990
rm -f *.ck
91+
92+
$(ARCHIVE_DIR): $(POFILES)
93+
mkdir -p $@/src/po
94+
cp $(POFILES) $@/src/po
95+
96+
$(ARCHIVE).tar.gz: $(ARCHIVE_DIR)
97+
tar -czf $@ $<
98+
99+
$(ARCHIVE).tar.bz2: $(ARCHIVE_DIR)
100+
tar -cjf $@ $<
101+
102+
$(ARCHIVE).tar.xz: $(ARCHIVE_DIR)
103+
tar -cJf $@ $<

0 commit comments

Comments
 (0)
Please sign in to comment.