From 8302a21ef7cfc9554b4e27f25a21ebfd03f61832 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 21 May 2011 15:11:22 +0100 Subject: [PATCH] Pickup SimGear version from its workspace (only works with 2.3.0 or higher) --- hudson_win_build32.bat | 4 +++- hudson_win_build64.bat | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hudson_win_build32.bat b/hudson_win_build32.bat index 77669d5..c5f1e3a 100644 --- a/hudson_win_build32.bat +++ b/hudson_win_build32.bat @@ -1,7 +1,9 @@ IF NOT DEFINED WORKSPACE SET WORKSPACE=%~dp0 -ECHO #define SIMGEAR_VERSION "2.2.0" > %WORKSPACE%\simgear\simgear\version.h +SET /P SIMGEAR_VERSION=<%WORKSAPCE%\simgear\version +ECHO #define SIMGEAR_VERSION "%SIMGEAR_VERSION%" > %WORKSPACE%\simgear\simgear\version.h + cd %WORKSPACE%\simgear\projects\VC90 msbuild SimGear.vcproj /p:Configuration=Release /m diff --git a/hudson_win_build64.bat b/hudson_win_build64.bat index 4d235de..1d044bb 100644 --- a/hudson_win_build64.bat +++ b/hudson_win_build64.bat @@ -1,7 +1,9 @@ IF NOT DEFINED WORKSPACE SET WORKSPACE=%~dp0 -ECHO #define SIMGEAR_VERSION "2.2.0" > %WORKSPACE%\simgear\simgear\version.h +SET /P SIMGEAR_VERSION=<%WORKSAPCE%\simgear\version +ECHO #define SIMGEAR_VERSION "%SIMGEAR_VERSION%" > %WORKSPACE%\simgear\simgear\version.h + cd %WORKSPACE%\simgear\projects\VC90 msbuild SimGear.vcproj /p:Configuration=Release /p:Platform=x64