2010-11-14 23:25:06 +00:00
|
|
|
|
|
|
|
REM
|
|
|
|
|
|
|
|
ECHO OFF
|
|
|
|
|
|
|
|
SET /P FLIGHTGEAR_VERSION=<version
|
|
|
|
|
|
|
|
SET HUDSON_BUILD_NUMBER=0
|
|
|
|
SET HUDSON_BUILD_ID=none
|
|
|
|
SET REVISION=none
|
|
|
|
|
2010-11-14 23:32:37 +00:00
|
|
|
IF DEFINED BUILD_ID SET HUDSON_BUILD_ID=%BUILD_ID%
|
|
|
|
IF DEFINED BUILD_NUMBER SET HUDSON_BUILD_NUMBER=%BUILD_NUMBER%
|
2010-11-14 23:25:06 +00:00
|
|
|
|
|
|
|
SET Header=src\Include\version.h
|
|
|
|
|
|
|
|
ECHO // version.h generated by version.bat on %DATE% > %Header%
|
|
|
|
|
|
|
|
ECHO #define FLIGHTGEAR_VERSION "%FLIGHTGEAR_VERSION%" >> %Header%
|
|
|
|
ECHO #define HUDSON_BUILD_ID "%HUDSON_BUILD_ID%" >> %Header%
|
|
|
|
ECHO #define HUDSON_BUILD_NUMBER %HUDSON_BUILD_NUMBER% >> %Header%
|
|
|
|
ECHO #define REVISION "%REVISION%" >> %Header%
|
|
|
|
|
|
|
|
|
|
|
|
|