update extraction of the version for the installer

This commit is contained in:
Forjan Frederic 2010-10-24 04:14:16 +00:00
parent 112bfd4445
commit 477679d139
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ ENDIF(NOT CONFIG_HAS_BEEN_RUN_BEFORE)
#extracting the current version...
EXECUTE_PROCESS(
COMMAND /usr/bin/sed
-n -e "s/.*glestVersionString= \"v\\\(.*\\\)\";.*/\\1/p"
-n -e "s/.*glestVersionString = \"v\\\(.*\\\)\";.*/\\1/p"
game_util.cpp
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/source/glest_game/facilities"
OUTPUT_VARIABLE MEGAGLEST_VERSION )