Vladimir Slavik's patch to generate version_stamp.hpp for Windows.
This commit is contained in:
parent
47e624306d
commit
fb75da3ddb
3 changed files with 16 additions and 0 deletions
1
utils/svnhpp_1.bin
Normal file
1
utils/svnhpp_1.bin
Normal file
|
@ -0,0 +1 @@
|
|||
#define SVNREV "
|
1
utils/svnhpp_2.bin
Normal file
1
utils/svnhpp_2.bin
Normal file
|
@ -0,0 +1 @@
|
|||
"
|
14
utils/version.bat
Normal file
14
utils/version.bat
Normal 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
|
Loading…
Add table
Reference in a new issue