Strip 'M' from svnversion's output if the current working copy is modified (mkrev.bat).

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@616 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2010-03-17 18:28:59 +00:00
parent 4512d1294c
commit 79c14ce896
2 changed files with 4 additions and 4 deletions

View File

@ -9,17 +9,17 @@ rem -----------------------------------------------------
rem This is not very elegant, but it works.
rem ./bin shouldn't have any local modifications
cd .\..\..\bin
svnversion > tmpfile.txt
set /p addtext= < tmpfile.txt
del /q tmpfile.txt
cd ..\packaging\windows-mkzip
echo #define SVNRevision > tmpfile.txt
if exist ..\..\revision.h del /q ..\..\revision.h
for /f "delims=" %%l in (tmpfile.txt) Do (
echo %%l %addtext% >> ..\..\revision.h
for /f "delims=M" %%r in ("%addtext%") Do (
echo %%l %%r >> ..\..\revision.h
)
)
del /q tmpfile.txt

View File

@ -1 +1 @@
#define SVNRevision 578
#define SVNRevision 613