]> jfr.im git - solanum.git/blobdiff - ircd/version.c.SH
Message handlers should return void.
[solanum.git] / ircd / version.c.SH
index 3ab433a32060006147e4aa4ad99100cfd223f842..c02158a3bcf7de914afa072dac4051f699e6389f 100644 (file)
@@ -1,7 +1,5 @@
 #!/bin/sh
 
-# $Id: version.c.SH 3342 2007-04-01 22:10:05Z jilles $ 
-
 spitshell=cat
 package=IRC
 
@@ -17,13 +15,15 @@ fi
 
 generation=`expr $generation + 1`
 
-uname=`uname -a`
-
-creation=`LC_ALL=C date | \
+if test "$EXTERNAL_BUILD_TIMESTAMP" = ''; then
+    creation=`LC_ALL=C date | \
 awk '{if (NF == 6) \
          { print $1 " "  $2 " " $3 " "  $6 " at " $4 " " $5 } \
 else \
          { print $1 " "  $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
+else
+    creation="$EXTERNAL_BUILD_TIMESTAMP"
+fi
 
 $spitshell >version.c <<!SUB!THIS!
 /*
@@ -54,9 +54,9 @@ $spitshell >version.c <<!SUB!THIS!
 
 const char *generation = "$generation";
 const char *creation = "$creation";
-const char *platform = "$uname";
 const char *ircd_version = PATCHLEVEL;
 const char *serno = SERNO;
+const unsigned long int datecode = DATECODE;
 
 const char *infotext[] =
 {