Windows version.h generation script.
This commit is contained in:
parent
38e1600bed
commit
9bf4c887d4
1 changed files with 25 additions and 0 deletions
25
scripts/tools/version.bat
Normal file
25
scripts/tools/version.bat
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
REM
|
||||
|
||||
ECHO OFF
|
||||
|
||||
SET /P FLIGHTGEAR_VERSION=<version
|
||||
|
||||
SET HUDSON_BUILD_NUMBER=0
|
||||
SET HUDSON_BUILD_ID=none
|
||||
SET REVISION=none
|
||||
|
||||
IF DEFINED %BUILD_ID% SET HUDSON_BUILD_ID=%BUILD_ID%
|
||||
IF DEFINED %BUILD_NUMBER% SET HUDSON_BUILD_NUMBER=%BUILD_NUMBER%
|
||||
|
||||
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%
|
||||
|
||||
|
||||
|
Loading…
Reference in a new issue