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
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define SVNRevision 578
|
||||
#define SVNRevision 613
|
||||
|
||||
Reference in New Issue
Block a user