diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-05-21 03:31:26 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-05-21 03:31:26 +0000 |
commit | 5466c7ca5de06e3fcfc76561d23f014d7762a03c (patch) | |
tree | 93660903b7eac6f426b93481011f23ba9876b6ff | |
parent | 7e3ea3cf5de40c119bfc4c6566bb52fd48635c8c (diff) | |
download | zbatery-5466c7ca5de06e3fcfc76561d23f014d7762a03c.tar.gz |
pkg.mk: update to the latest version
This fixes locale issues with grep and adds check-warnings.
-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 |