diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/make_ver.bat | 2 |
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
|