aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2002-11-25 09:00:05 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2002-11-25 09:00:05 +0000
commit9891836b19c34a87d09804d2c868f4dabc73e1b7 (patch)
treee6b8ee696324f5997eb7f4ff2701f64739979f5e
parent605a327e7b7c63dded295425e7a0634f7830ffff (diff)
downloadsrc-9891836b19c34a87d09804d2c868f4dabc73e1b7.tar.gz
src-9891836b19c34a87d09804d2c868f4dabc73e1b7.zip
Make this work under non-C locales.
PR: misc/45460 Approved by: re
Notes
Notes: svn path=/head/; revision=107224
-rw-r--r--usr.bin/getconf/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/getconf/Makefile b/usr.bin/getconf/Makefile
index 275b4f25d66e..eaaf628aad37 100644
--- a/usr.bin/getconf/Makefile
+++ b/usr.bin/getconf/Makefile
@@ -1,4 +1,4 @@
-# $FreeBSD$
+# $FreeBSD$
PROG= getconf
@@ -14,10 +14,11 @@ CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
all: conflicts
.gperf.c:
- awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET}
+ LC_ALL=C awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET}
.gperf.names:
- awk '/^[_A-Z]/ { print; }' ${.IMPSRC} | sed -e 's/,$$//' >${.TARGET}
+ LC_ALL=C awk '/^[_A-Z]/ { print; }' ${.IMPSRC} | \
+ sed -e 's/,$$//' >${.TARGET}
conflicts: conflicting.names unique.names
@if test `wc -l <conflicting.names` != `wc -l <unique.names`; then \
@@ -31,6 +32,6 @@ conflicting.names: confstr.names limits.names sysconf.names
cat ${.ALLSRC} >${.TARGET}
unique.names: conflicting.names
- sort -u ${.ALLSRC} >${.TARGET}
+ LC_ALL=C sort -u ${.ALLSRC} >${.TARGET}
.include <bsd.prog.mk>