Don't use the Gawkism strftime(). Pass in the date stamp on the awk

command line instead.

Approved by:	dcs
This commit is contained in:
David E. O'Brien 2000-11-14 21:02:49 +00:00
parent a0d74c6e9d
commit f9c70d7647
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68729
2 changed files with 3 additions and 2 deletions

View File

@ -37,6 +37,7 @@ SOFTWORDS= softcore.fr jhlocal.fr marker.fr freebsd.fr ficllocal.fr \
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/${MACHINE_ARCH} -I${.CURDIR}/../common -DFICL_TRACE
softcore.c: ${SOFTWORDS} softcore.awk
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} | awk -f softcore.awk) > ${.TARGET}
(cd ${.CURDIR}/softwords; cat ${SOFTWORDS} \
| awk -f softcore.awk -v datestamp="`date`") > ${.TARGET}

View File

@ -20,7 +20,7 @@ BEGIN \
printf "** Words from CORE set written in FICL\n";
printf "** Author: John Sadler (john_sadler@alum.mit.edu)\n";
printf "** Created: 27 December 1997\n";
printf "** Last update: %s\n", strftime();
printf "** Last update: %s\n", datestamp;
printf "***************************************************************/\n";
printf "\n/*\n";
printf "** This file contains definitions that are compiled into the\n";