summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-10-19 20:11:52 +0000
committerRobert Pösel <robyer@seznam.cz>2015-10-19 20:11:52 +0000
commit3b8beab406e3e93c0c007a8291393bc491669b99 (patch)
tree66c122042de9f9cbe921335859b51ae650f2ce10 /build
parent89cedbefd3197060e630a9751a7720f2a0d78bf5 (diff)
make_ver.bat: Fix trailing 'M', when the working copy contains modifications
git-svn-id: http://svn.miranda-ng.org/main/trunk@15570 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'build')
-rw-r--r--build/make_ver.bat2
1 files changed, 2 insertions, 0 deletions
diff --git a/build/make_ver.bat b/build/make_ver.bat
index 34c4e65f07..8f72cf52ee 100644
--- a/build/make_ver.bat
+++ b/build/make_ver.bat
@@ -8,6 +8,8 @@ REM Fix building not-svn repository (e.g., Git mirror)
if "%Revision:~0,11%" == "Unversioned" (set Revision=0)
REM Fix building when svnversion tool is not installed
if "%Revision%" == "" (set Revision=0)
+REM Fix trailing 'M', when the working copy contains modifications
+if "%Revision:~-1%" == "M" (set Revision=%Revision:~0,-1%)
for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :WriteVer %%i %%j %%k %Revision%
goto :eof