Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

pkg.mk: update to latest version

* check-warnings option added
* locale-independent grep invocation
  • Loading branch information...
commit da7ee89b75b5c0cdd2f332d073104f10ea14e055 1 parent 1e7dc89
Eric Wong authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.