Permalink
Browse files

pkg.mk: update to latest version

* check-warnings option added
* locale-independent grep invocation
  • Loading branch information...
Eric Wong
Eric Wong committed Jun 27, 2011
1 parent 1e7dc89 commit da7ee89b75b5c0cdd2f332d073104f10ea14e055
Showing with 5 additions and 1 deletion.
  1. +5 −1 pkg.mk
View
6 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

0 comments on commit da7ee89

Please sign in to comment.