this should be tagged 0.2.9

This commit is contained in:
Wolfgang Bumiller 2013-04-27 16:30:03 +02:00
parent 75ceab8f51
commit 219508e478
2 changed files with 11 additions and 12 deletions

16
gmqcc.h
View file

@ -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
View file

@ -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() {