]> git.sur5r.net Git - openldap/commitdiff
Use CPP __FILE__ and __TIME__ (not as pretty, but faster) instead of `date`.
authorHoward Chu <hyc@openldap.org>
Fri, 28 Mar 2003 18:35:50 +0000 (18:35 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 28 Mar 2003 18:35:50 +0000 (18:35 +0000)
So version.c files only need to be generated once.

build/mkversion

index 052a962416ff02b14869e5239e9b710f9bf39012..efa6e65050d2eb3f03a6cd32196f7004b78f8534 100755 (executable)
@@ -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__