Vladimir Slavik's patch to generate version_stamp.hpp for Windows.

This commit is contained in:
Eric S. Raymond 2008-01-26 20:48:27 +00:00
parent 47e624306d
commit fb75da3ddb
3 changed files with 16 additions and 0 deletions

1
utils/svnhpp_1.bin Normal file
View file

@ -0,0 +1 @@
#define SVNREV "

1
utils/svnhpp_2.bin Normal file
View file

@ -0,0 +1 @@
"

14
utils/version.bat Normal file
View file

@ -0,0 +1,14 @@
@echo off
rem Don't show unrelated output (calls)
cd ..
rem Go to project root
svnversion -n > tempfile.tmp
rem Get the revision data
copy utils\svnhpp_1.bin /B + tempfile.tmp /B + utils\svnhpp_2.bin /B src\revision_stamp.hpp
rem Concatenate the other files with rev. number in binary mode
del src\game_config.o
del src\game_config.obj
rem Add here some more stuff to delete...
rem This is to force rebuild of the file which includes version data
del tempfile.tmp
rem Rid of the temp