Skip to content

Commit

Permalink
Merge pull request #111 from vim-jp/release-only-po
Browse files Browse the repository at this point in the history
Make it possible to release only po files
  • Loading branch information
k-takata authored May 5, 2019
2 parents 644753a + 3cdb516 commit 70eee0f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/po/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@
/sjiscorr
/sjiscorr.exe
/vim.pot
/vim-lang-ja-po*.tar.gz
/vim-lang-ja-po*.tar.bz2
/vim-lang-ja-po*.tar.xz
34 changes: 34 additions & 0 deletions src/po/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
ARCHIVE = vim-lang-ja-po
ARCHIVE_EXT = xz
ARCHIVE_DIR = $(ARCHIVE)
ARCHIVE_FILE = $(ARCHIVE).tar.$(ARCHIVE_EXT)

MASTER_PO = ja.po

POFILES = ja.po \
ja.euc-jp.po \
ja.sjis.po

MOFILES = ja.mo \
ja.euc-jp.mo \
ja.sjis.mo
Expand All @@ -16,6 +25,15 @@ VIM = vim

test: check $(MOFILES)

release:
@rm -rf $(ARCHIVE_DIR) $(ARCHIVE_FILE)
$(MAKE) test
$(MAKE) $(ARCHIVE_FILE)
rm -rf $(ARCHIVE_DIR)

release-today:
$(MAKE) release ARCHIVE=vim-lang-ja-po-`date +%Y%m%d`

update: ja.sjis.po ja.euc-jp.po

ja.sjis.po: $(MASTER_PO)
Expand Down Expand Up @@ -50,6 +68,9 @@ clean: checkclean
rm -f ja.sjis.po ja.euc-jp.po
rm -f *.mo

distclean: clean
rm -f *.tar.bz2 *.tar.gz *.tar.xz

#ja.po: vim.pot
# rm -f [email protected]
# mv $@ [email protected]
Expand All @@ -67,3 +88,16 @@ check: $(CHECKFILES)

checkclean:
rm -f *.ck

$(ARCHIVE_DIR): $(POFILES)
mkdir -p $@/src/po
cp $(POFILES) $@/src/po

$(ARCHIVE).tar.gz: $(ARCHIVE_DIR)
tar -czf $@ $<

$(ARCHIVE).tar.bz2: $(ARCHIVE_DIR)
tar -cjf $@ $<

$(ARCHIVE).tar.xz: $(ARCHIVE_DIR)
tar -cJf $@ $<

0 comments on commit 70eee0f

Please sign in to comment.