-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from vim-jp/release-only-po
Make it possible to release only po files
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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) | ||
|
@@ -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] | ||
|
@@ -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 $@ $< |