From: Howard Chu Date: Fri, 28 Mar 2003 18:35:50 +0000 (+0000) Subject: Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of `date`. X-Git-Tag: NO_SLAP_OP_BLOCKS~21 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bf0956d05695a15b8b04602339f9677d403d5c68;p=openldap Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of `date`. So version.c files only need to be generated once. --- 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__