From bf0956d05695a15b8b04602339f9677d403d5c68 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 28 Mar 2003 18:35:50 +0000 Subject: [PATCH] Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of `date`. So version.c files only need to be generated once. --- build/mkversion | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build/mkversion b/build/mkversion index 052a962416..efa6e65050 100755 --- a/build/mkversion +++ b/build/mkversion @@ -42,7 +42,6 @@ if test $# != 1 ; then fi APPLICATION=$1 -WHEN=`date` WHOWHERE="$USER@`uname -n`:`pwd`" cat << __EOF__ @@ -56,6 +55,6 @@ static const char copyright[] = "COPYING RESTRICTIONS APPLY\n"; $static $const char $SYMBOL[] = -"@(#) \$$PACKAGE: $APPLICATION $VERSION ($WHEN) \$\n\t$WHOWHERE\n"; +"@(#) \$$PACKAGE: $APPLICATION $VERSION (" __DATE__ " " __TIME__ ") \$\n\t$WHOWHERE\n"; __EOF__ -- 2.39.5