diff --git a/data/glest_game b/data/glest_game index 0834a3d3..b6c91925 160000 --- a/data/glest_game +++ b/data/glest_game @@ -1 +1 @@ -Subproject commit 0834a3d3275e1ead9a0ef73232413f2966f01297 +Subproject commit b6c91925b7f3057ffcc604d3ad9bc8ee58576fef diff --git a/mk/linux/mg-version-synch.sh b/mk/linux/mg-version-synch.sh index 8b409b28..dadc7552 100755 --- a/mk/linux/mg-version-synch.sh +++ b/mk/linux/mg-version-synch.sh @@ -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:' diff --git a/mk/macosx/bundle_resources/Info.plist.in b/mk/macosx/bundle_resources/Info.plist.in index 106225e4..ca9b07a6 100644 --- a/mk/macosx/bundle_resources/Info.plist.in +++ b/mk/macosx/bundle_resources/Info.plist.in @@ -7,7 +7,7 @@ CFBundleExecutable MegaGlest CFBundleGetInfoString - v${MEGAGLEST_VERSION}, © 2001-2015 The MegaGlest Team. + v${MEGAGLEST_VERSION}, © 2001-2016 The MegaGlest Team. CFBundleIconFile MegaGlest CFBundleIdentifier