diff options
author | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:21:47 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2014-12-20 03:21:47 +0000 |
commit | 019fa8250d990b0e804eb6933aeba34951e6577e (patch) | |
tree | 2aeeccd27f048067daf772215d95355ce359e6fa /build | |
parent | ac85e379a057f4d716971dd9556c05ae4a948cc7 (diff) |
make_ver.bat: Fix building not-svn repository (e.g., Git mirror)
git-svn-id: http://svn.miranda-ng.org/main/trunk@11539 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'build')
-rw-r--r-- | build/make_ver.bat | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build/make_ver.bat b/build/make_ver.bat index bd83ec9dd5..c4f1498dc0 100644 --- a/build/make_ver.bat +++ b/build/make_ver.bat @@ -3,6 +3,10 @@ cd /d %~dp0 for /F "tokens=2,3" %%i in (..\include\m_version.h) do if "%%i"=="MIRANDA_VERSION_FILEVERSION" (set OldVer=%%j)
for /F %%i in ('svnversion build.no') do set Revision=%%i
+
+REM Fix building not-svn repository (e.g., Git mirror)
+if "%Revision:~0,11%" == "Unversioned" (set Revision=0)
+
for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :WriteVer %%i %%j %%k %Revision%
goto :eof
|