From: nikoli Date: Wed, 24 Jul 2013 16:13:57 +0000 (+0000) Subject: Add ability to reproduce build X-Git-Tag: xonotic-v0.8.0~96^2~62 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0045f24071e7bcc56bd56ebc6336516b375c5675;p=xonotic%2Fdarkplaces.git Add ability to reproduce build git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11978 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/builddate.c b/builddate.c index 061173ef..e38d9b18 100644 --- a/builddate.c +++ b/builddate.c @@ -2,9 +2,14 @@ #define STRINGIFY(arg) STRINGIFY2(arg) extern const char *buildstring; -const char *buildstring = __TIME__ " " __DATE__ +const char *buildstring = +#ifndef NO_BUILD_TIMESTAMPS +__TIME__ " " __DATE__ " " +#endif #ifdef SVNREVISION -" " STRINGIFY(SVNREVISION) +STRINGIFY(SVNREVISION) +#else +"-" #endif #ifdef BUILDTYPE " " STRINGIFY(BUILDTYPE)