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-9d2fd5bffc1fpull/1/head
parent
4512d1294c
commit
79c14ce896
|
@ -9,17 +9,17 @@ rem -----------------------------------------------------
|
||||||
rem This is not very elegant, but it works.
|
rem This is not very elegant, but it works.
|
||||||
rem ./bin shouldn't have any local modifications
|
rem ./bin shouldn't have any local modifications
|
||||||
|
|
||||||
cd .\..\..\bin
|
|
||||||
svnversion > tmpfile.txt
|
svnversion > tmpfile.txt
|
||||||
set /p addtext= < tmpfile.txt
|
set /p addtext= < tmpfile.txt
|
||||||
del /q tmpfile.txt
|
del /q tmpfile.txt
|
||||||
cd ..\packaging\windows-mkzip
|
|
||||||
|
|
||||||
echo #define SVNRevision > tmpfile.txt
|
echo #define SVNRevision > tmpfile.txt
|
||||||
|
|
||||||
if exist ..\..\revision.h del /q ..\..\revision.h
|
if exist ..\..\revision.h del /q ..\..\revision.h
|
||||||
for /f "delims=" %%l in (tmpfile.txt) Do (
|
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
|
del /q tmpfile.txt
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#define SVNRevision 578
|
#define SVNRevision 613
|
||||||
|
|
Loading…
Reference in New Issue