From f9c70d76471d87354ec503b82d84c66fb4f68b1f Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 14 Nov 2000 21:02:49 +0000 Subject: [PATCH] Don't use the Gawkism strftime(). Pass in the date stamp on the awk command line instead. Approved by: dcs --- sys/boot/ficl/Makefile | 3 ++- sys/boot/ficl/softwords/softcore.awk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/boot/ficl/Makefile b/sys/boot/ficl/Makefile index 2306cbc28c7b..95d03f3f9100 100644 --- a/sys/boot/ficl/Makefile +++ b/sys/boot/ficl/Makefile @@ -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} diff --git a/sys/boot/ficl/softwords/softcore.awk b/sys/boot/ficl/softwords/softcore.awk index 7faa1465e596..8bfb8bffe586 100644 --- a/sys/boot/ficl/softwords/softcore.awk +++ b/sys/boot/ficl/softwords/softcore.awk @@ -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";