#!/bin/sh
-# $Id: version.c.SH 3342 2007-04-01 22:10:05Z jilles $
-
spitshell=cat
package=IRC
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!
/*
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[] =
{