Make this work under non-C locales.

PR:		misc/45460
Approved by:	re
This commit is contained in:
Ruslan Ermilov 2002-11-25 09:00:05 +00:00
parent 605a327e7b
commit 9891836b19

View File

@ -1,4 +1,4 @@
# $FreeBSD$ # $FreeBSD$
PROG= getconf PROG= getconf
@ -14,10 +14,11 @@ CLEANFILES+= confstr.c limits.c pathconf.c progenv.c sysconf.c \
all: conflicts all: conflicts
.gperf.c: .gperf.c:
awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET} LC_ALL=C awk -f ${.CURDIR}/fake-gperf.awk ${.IMPSRC} >${.TARGET}
.gperf.names: .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 conflicts: conflicting.names unique.names
@if test `wc -l <conflicting.names` != `wc -l <unique.names`; then \ @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} cat ${.ALLSRC} >${.TARGET}
unique.names: conflicting.names unique.names: conflicting.names
sort -u ${.ALLSRC} >${.TARGET} LC_ALL=C sort -u ${.ALLSRC} >${.TARGET}
.include <bsd.prog.mk> .include <bsd.prog.mk>