Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of date.

So version.c files only need to be generated once.
This commit is contained in:
Howard Chu 2003-03-28 18:35:50 +00:00
parent 60ac3f352e
commit bf0956d056

View file

@ -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__