29 lines
705 B
Batchfile
29 lines
705 B
Batchfile
|
@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.
|
||
|
rem ./bin shouldn't have any alocal modifications
|
||
|
|
||
|
cd ..\bin
|
||
|
svnversion > tmpfile.txt
|
||
|
set /p addtext= < tmpfile.txt
|
||
|
del /q tmpfile.txt
|
||
|
cd ..\mkutil
|
||
|
|
||
|
echo #define SVNRevision > revision.h
|
||
|
|
||
|
if exist tmpfile.txt del /q tmpfile.txt
|
||
|
for /f "delims=" %%l in (revision.h) Do (
|
||
|
echo %%l %addtext% >> tmpfile.txt
|
||
|
)
|
||
|
del /q revision.h
|
||
|
ren tmpfile.txt revision.h
|
||
|
|
||
|
|
||
|
|