mirror of
https://github.com/glest/glest-source.git
synced 2025-09-09 07:20:47 +02:00
a bit more manual but also cleaner way of updating version number
This commit is contained in:
@@ -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.
|
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
|
To set the current version for release, modify the file source/version.txt
|
||||||
and change there available variables.
|
and change there available variables, then run mk/linux/mg-version-synch.sh script
|
||||||
During build (on linux by script build-mg.sh) version number will be updated
|
for updating version number everywhere where it is needed and then you only have
|
||||||
automatically everywhere where it is needed.
|
to commit changed files.
|
||||||
Then you only have to commit changed files.
|
|
||||||
|
|
||||||
#1. The source archive:
|
#1. The source archive:
|
||||||
This archive contains source code for binary compilation of the application and
|
This archive contains source code for binary compilation of the application and
|
||||||
|
@@ -89,7 +89,6 @@ CLANG_BIN_PATH=$( which clang 2>/dev/null )
|
|||||||
CLANGPP_BIN_PATH=$( which clang++ 2>/dev/null )
|
CLANGPP_BIN_PATH=$( which clang++ 2>/dev/null )
|
||||||
|
|
||||||
cd ${SCRIPTDIR}
|
cd ${SCRIPTDIR}
|
||||||
./mg-version-synch.sh >/dev/null
|
|
||||||
|
|
||||||
# Google breakpad integration (cross platform memory dumps) - OPTIONAL
|
# Google breakpad integration (cross platform memory dumps) - OPTIONAL
|
||||||
# Set this to the root path of your Google breakpad subversion working copy.
|
# Set this to the root path of your Google breakpad subversion working copy.
|
||||||
|
@@ -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}')"
|
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}')"
|
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}')"
|
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
|
||||||
echo '===== Updating Game ======'
|
echo '===== Updating Game ======'
|
||||||
# const string glestVersionString = "v3.12-dev";
|
# const string glestVersionString = "v3.12-dev";
|
||||||
|
@@ -1,11 +1,7 @@
|
|||||||
# How it currently works?
|
# How it currently works?
|
||||||
# Set version here (only here) and just start build on linux. Versions will be
|
# Set version here (only here) and just start mk/linux/mg-version-synch.sh script.
|
||||||
# updated everywhere automatically, but if CurrentGameVersion is a "dev" then
|
# Versions will be updated everywhere automatically.
|
||||||
# only game version will be automatically updated (saving time during rebuild
|
# Then you should commit changed files and that's all.
|
||||||
# and for cleaner "git status").
|
|
||||||
#
|
|
||||||
# Then you should on the occasion commit changed files (this step should/will
|
|
||||||
# disappear someday, during later improvements).
|
|
||||||
|
|
||||||
CurrentGameVersion = "3.12-dev";
|
CurrentGameVersion = "3.12-dev";
|
||||||
# ^ typical version numbers look like this: "3.11-beta1.0", "3.12-dev", "3.12.0"
|
# ^ typical version numbers look like this: "3.11-beta1.0", "3.12-dev", "3.12.0"
|
||||||
|
Reference in New Issue
Block a user