diff options
author | George Hazan <george.hazan@gmail.com> | 2013-06-26 14:10:48 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-06-26 14:10:48 +0000 |
commit | c5a620896de63f31e576aee8b75c302219d0c746 (patch) | |
tree | 810273719a9250bb664f3cc9fe97d7ca7796f86d /build | |
parent | 1c415a165fbd00805073be4f101bc15b1dcf2398 (diff) |
locale independent variant of make_ver.bat
git-svn-id: http://svn.miranda-ng.org/main/trunk@5140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'build')
-rw-r--r-- | build/make_ver.bat | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/build/make_ver.bat b/build/make_ver.bat index 52c080aed3..f1cddd29a0 100644 --- a/build/make_ver.bat +++ b/build/make_ver.bat @@ -2,19 +2,12 @@ cd /d %~dp0
for /F "tokens=2,3" %%i in (..\include\m_version.h) do if "%%i"=="MIRANDA_VERSION_FILEVERSION" (set OldVer=%%j)
-echo %OldVer%
-
-for /F "tokens=1,2" %%i in ('svn info build.no') do call :AddBuild %%i %%j
-goto :eof
-
-:AddBuild
-if (%1) == (Revision:) (
- for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :WriteVer %%i %%j %%k %2
- )
-
+for /F %%i in ('svnversion build.no') do set Revision=%%i
+for /F "tokens=1,2,3 delims= " %%i in (build.no) do call :WriteVer %%i %%j %%k %Revision%
goto :eof
:WriteVer
+echo %1.%2.%3.%4
if "%OldVer%" == "%1,%2,%3,%4" (goto :eof)
for /f "delims=/ tokens=1-3" %%a in ("%DATE:~4%") do (
|