From 79c14ce896e6c1e7d86a48b592afd880c2a1e09a Mon Sep 17 00:00:00 2001 From: aramis_acg Date: Wed, 17 Mar 2010 18:28:59 +0000 Subject: [PATCH] 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 --- packaging/windows-mkzip/mkrev.bat | 6 +++--- revision.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/windows-mkzip/mkrev.bat b/packaging/windows-mkzip/mkrev.bat index 72b453ef3..f46482ab2 100644 --- a/packaging/windows-mkzip/mkrev.bat +++ b/packaging/windows-mkzip/mkrev.bat @@ -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 diff --git a/revision.h b/revision.h index 4169fb83e..28f9155b8 100644 --- a/revision.h +++ b/revision.h @@ -1 +1 @@ -#define SVNRevision 578 +#define SVNRevision 613