mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 03:32:35 +01:00
get rid of '$Rev$'
This commit is contained in:
parent
dc52b53ced
commit
064566085e
@ -33,16 +33,16 @@ if [ "$modifymore" = "yes" ]; then
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
if [ "$modifymore" = "yes" ] && [ "$(git status >/dev/null 2>&1; echo "$?")" -eq "0" ]; then
|
if [ "$modifymore" = "yes" ] && [ "$(git status >/dev/null 2>&1; echo "$?")" -eq "0" ]; then
|
||||||
# const string GIT_RawRev = "$4446.1a8673f$";
|
# const string GIT_RawRev = "$4446.1a8673f$";
|
||||||
GitCommitForRelease="`git rev-list HEAD --count`.`git log -1 --format=%h`";
|
GitCommitForRelease="`git rev-list HEAD --count`.`git log -1 --format=%h`";
|
||||||
echo 'GitCommitForRelease # before:'
|
echo 'GitCommitForRelease # before:'
|
||||||
grep -E '^GitCommitForRelease = "[^"]*";$' "$VERSION_INFO_FILE"
|
grep -E '^GitCommitForRelease = "[^"]*";$' "$VERSION_INFO_FILE"
|
||||||
grep -E '^const string GIT_RawRev = "\$[^"$]*\$";$' ../../source/glest_game/facilities/game_util.cpp
|
grep -E '^ const string GIT_RawRev = "\$[^"$]*\$";$' ../../source/glest_game/facilities/game_util.cpp
|
||||||
sed -i 's/^GitCommitForRelease = "[^"]*";$/GitCommitForRelease = "'$GitCommitForRelease'";/' "$VERSION_INFO_FILE"
|
sed -i 's/^GitCommitForRelease = "[^"]*";$/GitCommitForRelease = "'$GitCommitForRelease'";/' "$VERSION_INFO_FILE"
|
||||||
sed -i 's/^const string GIT_RawRev = "$[^"]*";$/const string GIT_RawRev = "$'$GitCommitForRelease'$";/' ../../source/glest_game/facilities/game_util.cpp
|
sed -i 's/^ const string GIT_RawRev = "$[^"]*";$/ const string GIT_RawRev = "$'$GitCommitForRelease'$";/' ../../source/glest_game/facilities/game_util.cpp
|
||||||
echo 'GitCommitForRelease # after:'
|
echo 'GitCommitForRelease # after:'
|
||||||
grep -E '^GitCommitForRelease = "[^"]*";$' "$VERSION_INFO_FILE"
|
grep -E '^GitCommitForRelease = "[^"]*";$' "$VERSION_INFO_FILE"
|
||||||
grep -E '^const string GIT_RawRev = "\$[^"$]*\$";$' ../../source/glest_game/facilities/game_util.cpp
|
grep -E '^ const string GIT_RawRev = "\$[^"$]*\$";$' ../../source/glest_game/facilities/game_util.cpp
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
if [ "$modifymore" = "yes" ]; then
|
if [ "$modifymore" = "yes" ]; then
|
||||||
|
@ -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);
|
#include "gitversion.h"
|
||||||
const string GIT_Rev = string("Rev: ") + string(GITVERSION);
|
|
||||||
#elif defined(GITVERSIONHEADER)
|
|
||||||
#include "gitversion.h"
|
|
||||||
const string GIT_RawRev = string(GITVERSION);
|
|
||||||
const string GIT_Rev = string("Rev: ") + string(GITVERSION);
|
|
||||||
#else
|
|
||||||
const string GIT_RawRev = "$5421.18cad36$";
|
|
||||||
const string GIT_Rev = "$Rev$";
|
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(GITVERSION) || defined(GITVERSIONHEADER)
|
||||||
|
const string GIT_RawRev = string(GITVERSION);
|
||||||
|
#else
|
||||||
|
const string GIT_RawRev = "$5421.18cad36$";
|
||||||
|
#endif
|
||||||
|
const string GIT_Rev = string("Rev: ") + string(GIT_RawRev);
|
||||||
|
|
||||||
string getRAWGITRevisionString() {
|
string getRAWGITRevisionString() {
|
||||||
return GIT_RawRev;
|
return GIT_RawRev;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user