Skip to content

Commit 932b577

Browse files
authored
Merge pull request #58 from vim-jp/check
Run check.vim when testing
2 parents a2ef03c + 402ba59 commit 932b577

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

src/po/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/*.mo
2+
/*.ck
23
/*.po.bak
34
/*.po.new
45
/*.po.old

src/po/Makefile

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
MASTER_PO = ja.po
2-
TEST_TARGETS = ja.mo \
3-
ja.euc-jp.mo \
4-
ja.sjis.mo
2+
3+
MOFILES = ja.mo \
4+
ja.euc-jp.mo \
5+
ja.sjis.mo
6+
7+
CHECKFILES = ja.ck \
8+
ja.euc-jp.ck \
9+
ja.sjis.ck
510

611
MSGFMT = OLD_PO_FILE_INPUT=yes msgfmt
712

8-
.SUFFIXES: .po .mo
13+
.SUFFIXES: .po .mo .ck
914

10-
test: $(TEST_TARGETS)
15+
test: check $(MOFILES)
1116

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

@@ -38,7 +43,7 @@ merge-force:
3843
touch vim.pot
3944
@$(MAKE) merge
4045

41-
clean:
46+
clean: checkclean
4247
rm -f sjiscorr sjiscorr.exe
4348
rm -f ja.sjis.po ja.euc-jp.po
4449
rm -f *.mo
@@ -50,3 +55,13 @@ clean:
5055

5156
.po.mo:
5257
$(MSGFMT) -v -o $@ $<
58+
59+
.po.ck:
60+
vim -u NONE --noplugins -e -s -X --cmd "set enc=utf-8" -S check.vim \
61+
-c "if error == 0 | q | else | num 2 | cq | endif" $<
62+
touch $@
63+
64+
check: $(CHECKFILES)
65+
66+
checkclean:
67+
rm -f *.ck

0 commit comments

Comments
 (0)