a bit more manual but also cleaner way of updating version number

This commit is contained in:
filux 2015-02-02 22:08:20 +01:00
parent 8596f70479
commit da33c43230
4 changed files with 8 additions and 13 deletions

View File

@ -16,10 +16,9 @@ checked out for that specific release (example, tag: 3.11.0) or downloaded all
source archives/"tarballs" which in their name have same version, equal to tag.
To set the current version for release, modify the file source/version.txt
and change there available variables.
During build (on linux by script build-mg.sh) version number will be updated
automatically everywhere where it is needed.
Then you only have to commit changed files.
and change there available variables, then run mk/linux/mg-version-synch.sh script
for updating version number everywhere where it is needed and then you only have
to commit changed files.
#1. The source archive:
This archive contains source code for binary compilation of the application and

View File

@ -89,7 +89,6 @@ CLANG_BIN_PATH=$( which clang 2>/dev/null )
CLANGPP_BIN_PATH=$( which clang++ 2>/dev/null )
cd ${SCRIPTDIR}
./mg-version-synch.sh >/dev/null
# Google breakpad integration (cross platform memory dumps) - OPTIONAL
# Set this to the root path of your Google breakpad subversion working copy.

View File

@ -11,7 +11,8 @@ VERSION_INFO_FILE="$(dirname "$(readlink -f "$0")")/../../source/version.txt"
LastCompatibleSaveGameVersion="$(awk -F '=' '/^LastCompatibleSaveGameVersion =/ {print $2}' "$VERSION_INFO_FILE" | awk -F '"' '{print $2}')"
MapeditorVersion="$(awk -F '=' '/^MapeditorVersion =/ {print $2}' "$VERSION_INFO_FILE" | awk -F '"' '{print $2}')"
G3dviewerVersion="$(awk -F '=' '/^G3dviewerVersion =/ {print $2}' "$VERSION_INFO_FILE" | awk -F '"' '{print $2}')"
if [ "$(echo "$CURRENT_VERSION" | grep -v [a-zA-Z])" != "" ]; then modifymore="yes"; else modifymore="no"; fi
#if [ "$(echo "$CURRENT_VERSION" | grep -v [a-zA-Z])" != "" ]; then modifymore="yes"; else modifymore="no"; fi
modifymore="yes"
echo
echo '===== Updating Game ======'
# const string glestVersionString = "v3.12-dev";

View File

@ -1,11 +1,7 @@
# How it currently works?
# Set version here (only here) and just start build on linux. Versions will be
# updated everywhere automatically, but if CurrentGameVersion is a "dev" then
# only game version will be automatically updated (saving time during rebuild
# and for cleaner "git status").
#
# Then you should on the occasion commit changed files (this step should/will
# disappear someday, during later improvements).
# Set version here (only here) and just start mk/linux/mg-version-synch.sh script.
# Versions will be updated everywhere automatically.
# Then you should commit changed files and that's all.
CurrentGameVersion = "3.12-dev";
# ^ typical version numbers look like this: "3.11-beta1.0", "3.12-dev", "3.12.0"