get rid of '$Rev$'

This commit is contained in:
filux 2016-02-04 19:29:12 +01:00
parent dc52b53ced
commit 064566085e
2 changed files with 14 additions and 16 deletions

View File

@ -30,22 +30,20 @@ namespace Glest { namespace Game {
const char *mailString = " http://bugs.megaglest.org"; const char *mailString = " http://bugs.megaglest.org";
// !! Use minor versions !! Only major and minor version control compatibility! // !! Use minor versions !! Only major and minor version control compatibility!
// typical version numbers look like this: v3.11-beta1.0 v3.12-dev v3.12.0 // typical version numbers look like this: v3.13-beta1.0 v3.12-dev v3.12.1
// don't forget to update source/version.txt // don't forget to update file: source/version.txt
const string glestVersionString = "v3.12-dev"; const string glestVersionString = "v3.12-dev";
const string lastCompatibleSaveGameVersionString = "v3.11.1"; const string lastCompatibleSaveGameVersionString = "v3.11.1";
#if defined(GITVERSION) #if defined(GITVERSIONHEADER)
const string GIT_RawRev = string(GITVERSION);
const string GIT_Rev = string("Rev: ") + string(GITVERSION);
#elif defined(GITVERSIONHEADER)
#include "gitversion.h" #include "gitversion.h"
#endif
#if defined(GITVERSION) || defined(GITVERSIONHEADER)
const string GIT_RawRev = string(GITVERSION); const string GIT_RawRev = string(GITVERSION);
const string GIT_Rev = string("Rev: ") + string(GITVERSION);
#else #else
const string GIT_RawRev = "$5421.18cad36$"; const string GIT_RawRev = "$5421.18cad36$";
const string GIT_Rev = "$Rev$";
#endif #endif
const string GIT_Rev = string("Rev: ") + string(GIT_RawRev);
string getRAWGITRevisionString() { string getRAWGITRevisionString() {
return GIT_RawRev; return GIT_RawRev;