diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-08-06 21:06:38 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-08-06 21:06:38 +0000 |
commit | 0e9e6c54bb25eadcf955a7abb0b60e97388d8290 (patch) | |
tree | 7da148339aae242e81929a254c02e713e9fc31c5 | |
parent | 86f36a2d88aca8fdef45fd2a757f98a593935ba9 (diff) | |
download | ruby_posix_mq-0e9e6c54bb25eadcf955a7abb0b60e97388d8290.tar.gz |
-rw-r--r-- | pkg.mk | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -69,7 +69,7 @@ doc:: .document .wrongdoc.yml $(pkg_extra) $(RM) -r doc $(WRONGDOC) all install -m644 COPYING doc/COPYING - install -m644 $(shell grep '^[A-Z]' .document) doc/ + install -m644 $(shell LC_ALL=C grep '^[A-Z]' .document) doc/ ifneq ($(VERSION),) pkggem := pkg/$(rfpackage)-$(VERSION).gem @@ -167,5 +167,9 @@ doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.\(gif\|jpg\|png\|gz\)$$') doc_gz: for i in $(docs); do \ gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done +check-warnings: + @(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \ + do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || : .PHONY: all .FORCE-GIT-VERSION-FILE doc test $(test_units) manifest +.PHONY: check-warnings |