Merge pull request #149 from anarcat/reproducible
make build reproducible
This commit is contained in:
commit
e742a9e9e7
3 changed files with 5 additions and 15 deletions
|
@ -61,7 +61,6 @@ extern struct SetOptions GlobalSetOptions; /* defined in ircd.c */
|
|||
|
||||
extern const char *creation;
|
||||
extern const char *generation;
|
||||
extern const char *platform;
|
||||
extern const char *infotext[];
|
||||
extern const char *serno;
|
||||
extern const char *ircd_version;
|
||||
|
|
|
@ -17,13 +17,15 @@ fi
|
|||
|
||||
generation=`expr $generation + 1`
|
||||
|
||||
uname=`uname -a`
|
||||
|
||||
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,7 +56,6 @@ $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;
|
||||
|
||||
|
|
|
@ -17,14 +17,6 @@ fi
|
|||
|
||||
generation=`expr $generation + 1`
|
||||
|
||||
uname=`uname -a`
|
||||
|
||||
creation=`date | \
|
||||
awk '{if (NF == 6) \
|
||||
{ print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
|
||||
else \
|
||||
{ print $1 " " $2 " " $3 " " $7 " at " $4 " " $5 " " $6 }}'`
|
||||
|
||||
$spitshell >version.c <<!SUB!THIS!
|
||||
/*
|
||||
* libratbox: a library used by ircd-ratbox and other things
|
||||
|
@ -55,9 +47,7 @@ $spitshell >version.c <<!SUB!THIS!
|
|||
#include "../include/serno.h"
|
||||
|
||||
const char *libratbox_generation = "$generation";
|
||||
const char *libratbox_platform = "$uname";
|
||||
const char *libratbox_serno = SERIALNUM;
|
||||
const char *libratbox_creation = "$creation";
|
||||
|
||||
const char *libratbox_infotext[] =
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue