- added a new script to synch everything to the mg-version.sh when doing a release

This commit is contained in:
Mark Vejvoda 2011-12-16 07:39:19 +00:00
parent ebba25b06f
commit 69fa9279a5
1 changed files with 13 additions and 0 deletions

13
mk/linux/mg-version-synch.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/bash
# Use this script to synchronize other scripts and installers with the version
# in mg-version.sh for a Version Release
# ----------------------------------------------------------------------------
# Written by Mark Vejvoda <mark_vejvoda@hotmail.com>
# Copyright (c) 2011 Mark Vejvoda under GNU GPL v3.0+
CURRENT_VERSION=`./mg-version.sh --version`
echo 'Linux Installer version # before:'
grep -E '^local GAME_VERSION = "[^"]*";$' mojosetup/megaglest-installer/scripts/config.lua;sed -i 's/^local GAME_VERSION = "[^"]*";$/local GAME_VERSION = "'$CURRENT_VERSION'";/' mojosetup/megaglest-installer/scripts/config.lua
echo 'Linux Installer version # after:'
grep -E '^local GAME_VERSION = "[^"]*";$' mojosetup/megaglest-installer/scripts/config.lua