diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-03-17 21:19:54 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-03-17 14:21:06 -0700 |
commit | 2bedfbb15638564432521ebe81c48ce8fded2c3d (patch) | |
tree | e06f98eb1166f822f26833b4aa535f78227f142b | |
parent | fd12391c2858bb847031de85ce16ff35b0b48c64 (diff) | |
download | kcar-2bedfbb15638564432521ebe81c48ce8fded2c3d.tar.gz |
-rw-r--r-- | pkg.mk | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |