From 7442ac7c54737eb253568f803de2ec3cb3737f8b Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Mon, 23 Aug 2010 17:13:19 +0000 Subject: [PATCH] - test to try to get svn rev # in build string --- source/glest_game/facilities/game_util.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/glest_game/facilities/game_util.cpp b/source/glest_game/facilities/game_util.cpp index d5cc3a79..390d47ac 100644 --- a/source/glest_game/facilities/game_util.cpp +++ b/source/glest_game/facilities/game_util.cpp @@ -27,6 +27,7 @@ namespace Glest{ namespace Game{ const string mailString= "contact_game@glest.org"; const string glestVersionString= "v3.3.7-dev"; +const string SVN_Rev = "$Rev$"; string getCrashDumpFileName(){ return "glest" + glestVersionString + ".dmp"; @@ -83,13 +84,13 @@ version += " [DEBUG]"; } string getNetworkVersionString() { - string version = glestVersionString + " built: " + string(__DATE__) + " " + string(__TIME__); + string version = glestVersionString + " built: " + string(__DATE__) + " " + string(__TIME__) + " " + SVN_Rev; version += " Compiler " + getCompilerNameString(); return version; } string getCompileDateTime() { - return string(__DATE__) + " " + string(__TIME__); + return string(__DATE__) + " " + SVN_Rev + " " + string(__TIME__); } string getNetworkPlatformFreeVersionString() { @@ -99,7 +100,7 @@ string getNetworkPlatformFreeVersionString() { string getAboutString1(int i){ switch(i){ case 0: return "Glest " + glestVersionString + " (" + "Shared Library " + sharedLibVersionString + ")"; - case 1: return "Built: " + string(__DATE__); + case 1: return "Built: " + string(__DATE__) + " " + SVN_Rev; case 2: return "Copyright 2001-2010 The Glest Team"; } return "";