about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-12-06 03:47:36 +0000
committerEric Wong <normalperson@yhbt.net>2011-12-06 03:47:36 +0000
commitb772e23294d82dd0982ed60ae95eab8bfaa8c6bf (patch)
tree74da331cc68f6151d1dd546035100a6692cd73c0
parenta1c4506c011b071a9aef0145827b51ffe4d5cd60 (diff)
-rw-r--r--pkg.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkg.mk b/pkg.mk
index 487733a..4cd5bef 100644
--- a/pkg.mk
+++ b/pkg.mk
@@ -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