diff options
author | George Hazan <george.hazan@gmail.com> | 2012-05-17 21:39:31 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-05-17 21:39:31 +0000 |
commit | 463294e14641b2e3935f681de4e815b567ed5b01 (patch) | |
tree | 8f14ffa881a5434c71f590431890eb9fc6b57cba /bin10/make_ver.bat | |
parent | f1dfd934eeaf02e8315df337cd64eaf1ab2d4004 (diff) |
version makers
git-svn-id: http://svn.miranda-ng.org/main/trunk@31 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'bin10/make_ver.bat')
-rw-r--r-- | bin10/make_ver.bat | 24 |
1 files changed, 24 insertions, 0 deletions
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
|