]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Add ability to reproduce build
authornikoli <nikoli@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 24 Jul 2013 16:13:57 +0000 (16:13 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 26 Jul 2013 18:04:06 +0000 (20:04 +0200)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11978 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=0045f24071e7bcc56bd56ebc6336516b375c5675

builddate.c

index 061173ef4ca90c0750817b27ac9a80ac72db257e..e38d9b18fc8655a3f6eb129290838aec07a39a86 100644 (file)
@@ -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)