diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-12-06 03:47:36 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-12-06 03:47:36 +0000 |
commit | b772e23294d82dd0982ed60ae95eab8bfaa8c6bf (patch) | |
tree | 74da331cc68f6151d1dd546035100a6692cd73c0 | |
parent | a1c4506c011b071a9aef0145827b51ffe4d5cd60 (diff) | |
download | clogger-b772e23294d82dd0982ed60ae95eab8bfaa8c6bf.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 |