mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2024-11-23 20:33:05 +00:00
this should be tagged 0.2.9
This commit is contained in:
parent
75ceab8f51
commit
219508e478
2 changed files with 11 additions and 12 deletions
16
gmqcc.h
16
gmqcc.h
|
@ -45,16 +45,20 @@
|
|||
#define GMQCC_VERSION \
|
||||
GMQCC_VERSION_BUILD(GMQCC_VERSION_MAJOR, GMQCC_VERSION_MINOR, GMQCC_VERSION_PATCH)
|
||||
/* Undefine the following on a release-tag: */
|
||||
#define GMQCC_VERSION_TYPE_DEVEL
|
||||
/* #define GMQCC_VERSION_TYPE_DEVEL */
|
||||
|
||||
/* Full version string in case we need it */
|
||||
#ifdef GMQCC_GITINFO
|
||||
# define GMQCC_DEV_VERSION_STRING "git build: " GMQCC_GITINFO "\n"
|
||||
#elif defined(GMQCC_VERSION_TYPE_DEVEL)
|
||||
# define GMQCC_DEV_VERSION_STRING "development build\n"
|
||||
#ifdef GMQCC_VERSION_TYPE_DEVEL
|
||||
# ifdef GMQCC_GITINFO
|
||||
# define GMQCC_DEV_VERSION_STRING "git build: " GMQCC_GITINFO "\n"
|
||||
# elif defined(GMQCC_VERSION_TYPE_DEVEL)
|
||||
# define GMQCC_DEV_VERSION_STRING "development build\n"
|
||||
# else
|
||||
# define GMQCC_DEV_VERSION_STRING
|
||||
# endif /*! GMQCC_GITINGO */
|
||||
#else
|
||||
# define GMQCC_DEV_VERSION_STRING
|
||||
#endif /*! GMQCC_GITINGO */
|
||||
#endif
|
||||
|
||||
#define GMQCC_STRINGIFY(x) #x
|
||||
#define GMQCC_IND_STRING(x) GMQCC_STRINGIFY(x)
|
||||
|
|
7
main.c
7
main.c
|
@ -44,18 +44,13 @@ static ppitem *ppems = NULL;
|
|||
static const char *app_name;
|
||||
|
||||
static void version() {
|
||||
con_out("GMQCC %d.%d.%d Built %s %s\n",
|
||||
con_out("GMQCC %d.%d.%d Built %s %s\n" GMQCC_DEV_VERSION_STRING,
|
||||
GMQCC_VERSION_MAJOR,
|
||||
GMQCC_VERSION_MINOR,
|
||||
GMQCC_VERSION_PATCH,
|
||||
__DATE__,
|
||||
__TIME__
|
||||
);
|
||||
#ifdef GMQCC_GITINFO
|
||||
con_out("git build: %s\n", GMQCC_GITINFO);
|
||||
#elif defined(GMQCC_VERION_TYPE_DEVEL)
|
||||
con_out("development build\n");
|
||||
#endif
|
||||
}
|
||||
|
||||
static int usage() {
|
||||
|
|
Loading…
Reference in a new issue