use automatic versioning

This commit is contained in:
koolsmoky
2003-08-15 11:50:38 +00:00
parent fdb64e3424
commit 0657059cff
2 changed files with 7 additions and 5 deletions

View File

@@ -49,13 +49,15 @@ main(int argc, char **argv)
locTime = *localtime(&sysTime);
if (build = getenv("BUILD_NUMBER")) {
printf("#define BUILD_NUMBER %s\n", build);
printf("#define BUILD_NUMBER %s\n", build);
printf("#define BUILD_NUMBER_STR \"%s\"\n", build);
} else {
unsigned short magic;
magic = (locTime.tm_yday << 7) |
(locTime.tm_hour << 2) |
(locTime.tm_min / 15);
printf("#define BUILD_NUMBER %d\n", magic);
printf("#define BUILD_NUMBER %d\n", magic);
printf("#define BUILD_NUMBER_STR \"%d\"\n", magic);
}
return 0;

View File

@@ -21,14 +21,14 @@
**
*/
#include "fxbldno.h"
#define MANVERSION 3
#define MANREVISION 10
#define MINVERSION 00
//#define BUILD_NUMBER 3001 /* hmm, must be at least 674 for the 3dfx OpenGL ICD to work correctly */
#define BUILD_NUMBER 3001 /* hmm, must be at least 674 for the 3dfx OpenGL ICD to work correctly */
#define VERSIONSTR "3.10.00.3001"
#define VERSIONSTR "3.10.00." BUILD_NUMBER_STR
#define CONTACTSTR "The Glide Open Source Project http://glide.sourceforge.net/"
#if defined(__WIN32__)