Prefer the git-describe version number if it exists.

This commit is contained in:
Jan Vidar Krey 2010-02-11 01:21:08 +01:00
parent 19b9f72337
commit 977b57a385
1 changed files with 4 additions and 0 deletions

View File

@ -13,8 +13,12 @@
#define PRODUCT_STRING PRODUCT "/" VERSION
#else
#define REVISION "(git: " GIT_REVISION ")"
#ifdef GIT_VERSION
#define PRODUCT_STRING PRODUCT "/" GIT_VERSION
#else
#define PRODUCT_STRING PRODUCT "/" VERSION " " REVISION
#endif
#endif
#ifndef COPYRIGHT
#define COPYRIGHT "Copyright (c) 2007-2010, Jan Vidar Krey <janvidar@extatic.org>"