blob: fae2c806ec5336f78677b552aae33960d05fa88e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|