From c5a620896de63f31e576aee8b75c302219d0c746 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Jun 2013 14:10:48 +0000 Subject: locale independent variant of make_ver.bat git-svn-id: http://svn.miranda-ng.org/main/trunk@5140 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- build/make_ver.bat | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'build') 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 ( -- cgit v1.2.3