summaryrefslogtreecommitdiff
path: root/src/mesh/assimp-master/packaging/windows-mkzip/mkrev.bat
blob: 9d8eec1205d61cbc3d79df90e582d584f97ec49a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@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 local modifications

svnversion > tmpfile.txt
set /p addtext= < tmpfile.txt
del /q tmpfile.txt

echo #define SVNRevision > tmpfile.txt

if exist ..\..\revision.h del /q ..\..\revision.h
for /f "delims=" %%l in (tmpfile.txt) Do (
	for /f "delims=M:" %%r in ("%addtext%") Do (
      		echo %%l %%r >> ..\..\revision.h
	)
)
del /q tmpfile.txt