mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-22 10:40:56 +00:00
2ecdd9e6f9
Also makes comptime.bat work with git if able. Development builds will now show the branch and the SHA1 hash of the revision. Also been tested to work with subversion, where it displays "Subversion r####". You know, just in case.
25 lines
547 B
C
25 lines
547 B
C
/*
|
|
* Compiles date and time.
|
|
*
|
|
* Kalaron: Can't this be somewhere else instead of in an extra c file?
|
|
* Alam: Code::Block, XCode and the Makefile touch this file to update
|
|
* the timestamp
|
|
*
|
|
*/
|
|
|
|
#if (defined(CMAKECONFIG))
|
|
#include "config.h"
|
|
const char *compbranch = SRB2_COMP_BRANCH;
|
|
const char *comprevision = SRB2_COMP_REVISION;
|
|
|
|
#elif (defined(COMPVERSION))
|
|
#include "comptime.h"
|
|
|
|
#else
|
|
const char *compbranch = "Unknown";
|
|
const char *comprevision = "illegal";
|
|
|
|
#endif
|
|
|
|
const char *compdate = __DATE__;
|
|
const char *comptime = __TIME__;
|