2009-02-12 13:40:32 +00:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
rem -----------------------------------------------------
|
|
|
|
rem Tiny batch script to build the input file revision.h
|
|
|
|
rem revision.h contains the revision number of the wc.
|
|
|
|
rem It is included by assimp.rc.
|
|
|
|
rem -----------------------------------------------------
|
|
|
|
|
|
|
|
rem This is not very elegant, but it works.
|
2009-04-10 21:59:22 +00:00
|
|
|
rem ./bin shouldn't have any local modifications
|
2009-02-12 13:40:32 +00:00
|
|
|
|
|
|
|
svnversion > tmpfile.txt
|
|
|
|
set /p addtext= < tmpfile.txt
|
|
|
|
del /q tmpfile.txt
|
|
|
|
|
2009-05-09 23:27:48 +00:00
|
|
|
echo #define SVNRevision > tmpfile.txt
|
2009-02-12 13:40:32 +00:00
|
|
|
|
2010-03-04 18:46:54 +00:00
|
|
|
if exist ..\..\revision.h del /q ..\..\revision.h
|
2009-05-09 23:27:48 +00:00
|
|
|
for /f "delims=" %%l in (tmpfile.txt) Do (
|
2010-03-17 18:28:59 +00:00
|
|
|
for /f "delims=M" %%r in ("%addtext%") Do (
|
|
|
|
echo %%l %%r >> ..\..\revision.h
|
|
|
|
)
|
2009-02-12 13:40:32 +00:00
|
|
|
)
|
2009-05-09 23:27:48 +00:00
|
|
|
del /q tmpfile.txt
|
2009-02-12 13:40:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|