From 3b8beab406e3e93c0c007a8291393bc491669b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Mon, 19 Oct 2015 20:11:52 +0000 Subject: 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 --- build/make_ver.bat | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3