version-synch script will update also date [ci skip]
This commit is contained in:
parent
b06f4d9776
commit
760d5a9f97
|
@ -1 +1 @@
|
|||
Subproject commit 0834a3d3275e1ead9a0ef73232413f2966f01297
|
||||
Subproject commit b6c91925b7f3057ffcc604d3ad9bc8ee58576fef
|
|
@ -11,6 +11,7 @@ CURRENT_VERSION=`./mg-version.sh --version`
|
|||
OLD_VERSION=`./mg-version.sh --oldversion_binary`
|
||||
VERSION_INFO_FILE="$(dirname "$(readlink -f "$0")")/../../source/version.txt"
|
||||
LastCompatibleSaveGameVersion="$(awk -F '=' '/^LastCompatibleSaveGameVersion =/ {print $2}' "$VERSION_INFO_FILE" | awk -F '"' '{print $2}')"
|
||||
CurrYear="$(date +%y)"
|
||||
MapeditorVersion="$CURRENT_VERSION"
|
||||
G3dviewerVersion="$CURRENT_VERSION"
|
||||
modifymore="yes"
|
||||
|
@ -23,6 +24,15 @@ sed -i 's/^const string glestVersionString = "[^"]*";$/const string glestVersio
|
|||
echo 'Game version # after:'
|
||||
grep -E '^const string glestVersionString = "[^"]*";$' ../../source/glest_game/facilities/game_util.cpp
|
||||
echo
|
||||
echo 'Game Copyright date # before:'
|
||||
grep -E 'Copyright 2010-20[0-9][0-9] The MegaGlest Team' ../../source/glest_game/facilities/game_util.cpp
|
||||
sed -i 's/Copyright 2010-20[0-9][0-9] The MegaGlest Team/Copyright 2010-20'$CurrYear' The MegaGlest Team/' ../../source/glest_game/facilities/game_util.cpp
|
||||
grep -E '© 2001-20[0-9][0-9] The MegaGlest Team' ../../mk/macosx/bundle_resources/Info.plist.in
|
||||
sed -i 's/© 2001-20[0-9][0-9] The MegaGlest Team/© 2001-20'$CurrYear' The MegaGlest Team/' ../../mk/macosx/bundle_resources/Info.plist.in
|
||||
echo 'Game Copyright date # after:'
|
||||
grep -E 'Copyright 2010-20[0-9][0-9] The MegaGlest Team' ../../source/glest_game/facilities/game_util.cpp
|
||||
grep -E '© 2001-20[0-9][0-9] The MegaGlest Team' ../../mk/macosx/bundle_resources/Info.plist.in
|
||||
echo
|
||||
if [ "$modifymore" = "yes" ]; then
|
||||
# const string lastCompatibleSaveGameVersionString = "v3.9.0";
|
||||
echo 'Compatible Save Game version # before:'
|
||||
|
@ -54,6 +64,12 @@ if [ "$modifymore" = "yes" ]; then
|
|||
echo 'Mapeditor version # after:'
|
||||
grep -E '^const string mapeditorVersionString = "[^"]*";$' ../../source/glest_map_editor/main.cpp
|
||||
echo
|
||||
echo 'Mapeditor Copyright date # before:'
|
||||
grep -E 'Copyright 2010-20[0-9][0-9] The MegaGlest Team' ../../source/glest_map_editor/main.cpp
|
||||
sed -i 's/Copyright 2010-20[0-9][0-9] The MegaGlest Team/Copyright 2010-20'$CurrYear' The MegaGlest Team/' ../../source/glest_map_editor/main.cpp
|
||||
echo 'Mapeditor Copyright date # after:'
|
||||
grep -E 'Copyright 2010-20[0-9][0-9] The MegaGlest Team' ../../source/glest_map_editor/main.cpp
|
||||
echo
|
||||
echo '===== Updating G3dviewer ======'
|
||||
# const string g3dviewerVersionString= "v1.3.6";
|
||||
echo 'G3dviewer version # before:'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleExecutable</key>
|
||||
<string>MegaGlest</string>
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>v${MEGAGLEST_VERSION}, © 2001-2015 The MegaGlest Team.</string>
|
||||
<string>v${MEGAGLEST_VERSION}, © 2001-2016 The MegaGlest Team.</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>MegaGlest</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
|
|
Loading…
Reference in New Issue