about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-05-21 03:01:50 +0000
committerEric Wong <normalperson@yhbt.net>2011-05-21 03:18:58 +0000
commite5eda7790806d6d7709d02db04c75f09340e9a24 (patch)
tree3a95a4f421974d5821994774ac6c693c1ae76444
parent7bd77ef78055af5d5232d16f00568ce02b947ae0 (diff)
* locale fix for grep
-rw-r--r--pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg.mk b/pkg.mk
index 8f3dafe..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
@@ -168,7 +168,7 @@ 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$$'); \
+        @(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