From 463294e14641b2e3935f681de4e815b567ed5b01 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 17 May 2012 21:39:31 +0000 Subject: version makers git-svn-id: http://svn.miranda-ng.org/main/trunk@31 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- bin10/build.no | 1 + bin10/m_version.h.in | 29 +++++++++++++++++++++++++++++ bin10/make_ver.bat | 24 ++++++++++++++++++++++++ include/m_version.h | 12 ++++++------ 4 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 bin10/build.no create mode 100644 bin10/m_version.h.in create mode 100644 bin10/make_ver.bat diff --git a/bin10/build.no b/bin10/build.no new file mode 100644 index 0000000000..e6442bdc64 --- /dev/null +++ b/bin10/build.no @@ -0,0 +1 @@ +92 1 0 \ No newline at end of file diff --git a/bin10/m_version.h.in b/bin10/m_version.h.in new file mode 100644 index 0000000000..8412e357e4 --- /dev/null +++ b/bin10/m_version.h.in @@ -0,0 +1,29 @@ +/* + +Miranda IM: the free IM client for Microsoft* Windows* + +Copyright 2000-2010 Miranda ICQ/IM project, +all portions of this codebase are copyrighted to the people +listed in contributors.txt. + +This program is free software; you can redistribute it and/or +modify it under the terms of the GNU General Public License +as published by the Free Software Foundation; either version 2 +of the License, or (at your option) any later version. + +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +*/ +#ifndef M_VERSION_H__ +#define M_VERSION_H__ + +#ifndef MIRANDA_MAKE_VERSION +#define MIRANDA_MAKE_VERSION(a,b,c,d) (((((DWORD)(a))&0xFF)<<24)|((((DWORD)(b))&0xFF)<<16)|((((DWORD)(c))&0xFF)<<8)|(((DWORD)(d))&0xFF)) +#endif + diff --git a/bin10/make_ver.bat b/bin10/make_ver.bat new file mode 100644 index 0000000000..fae2c806ec --- /dev/null +++ b/bin10/make_ver.bat @@ -0,0 +1,24 @@ +@echo off + +for /F "tokens=1,2" %%i in ('svn info miranda32.sln') 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 %2 + ) + +goto :eof + +:WriteVer +copy m_version.h.in ..\include\m_version.h + +echo #define MIRANDA_VERSION_FILEVERSION 0,%1,%2,%3 >>..\include\m_version.h +echo #define MIRANDA_VERSION_STRING "0.%1.%2.%3" >>..\include\m_version.h +echo #define MIRANDA_VERSION_DISPLAY "0.%1.%2 alpha build #%3" >>..\include\m_version.h +echo #define MIRANDA_VERSION_DWORD MIRANDA_MAKE_VERSION(0, %1, %2, %3) >>..\include\m_version.h +echo #define MIRANDA_VERSION_CORE MIRANDA_MAKE_VERSION(0, %1, %2, 0) >>..\include\m_version.h +echo #define MIRANDA_VERSION_CORE_STRING "0.%1.%2.0" >>..\include\m_version.h +echo. >>..\include\m_version.h +echo #endif // M_VERSION_H__ >>..\include\m_version.h +goto :eof diff --git a/include/m_version.h b/include/m_version.h index 17fb37c564..b4bfa7763b 100644 --- a/include/m_version.h +++ b/include/m_version.h @@ -27,11 +27,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define MIRANDA_MAKE_VERSION(a,b,c,d) (((((DWORD)(a))&0xFF)<<24)|((((DWORD)(b))&0xFF)<<16)|((((DWORD)(c))&0xFF)<<8)|(((DWORD)(d))&0xFF)) #endif -#define MIRANDA_VERSION_FILEVERSION 0,10,0,3 -#define MIRANDA_VERSION_STRING "0.10.0.3" -#define MIRANDA_VERSION_DISPLAY "0.10.0 alpha build #3" -#define MIRANDA_VERSION_DWORD MIRANDA_MAKE_VERSION(0, 10, 0, 3) -#define MIRANDA_VERSION_CORE MIRANDA_MAKE_VERSION(0, 10, 0, 0) -#define MIRANDA_VERSION_CORE_STRING "0.10.0.0" +#define MIRANDA_VERSION_FILEVERSION 0,92,1,25 +#define MIRANDA_VERSION_STRING "0.92.1.25" +#define MIRANDA_VERSION_DISPLAY "0.92.1 alpha build #25" +#define MIRANDA_VERSION_DWORD MIRANDA_MAKE_VERSION(0, 92, 1, 25) +#define MIRANDA_VERSION_CORE MIRANDA_MAKE_VERSION(0, 92, 1, 0) +#define MIRANDA_VERSION_CORE_STRING "0.92.1.0" #endif // M_VERSION_H__ -- cgit v1.2.3