summaryrefslogtreecommitdiff
path: root/bin10/make_ver.bat
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-12-07 13:32:49 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-12-07 13:32:49 +0000
commitf6c508b4207c399015c3ed5880ec544a8cd12559 (patch)
tree72477eb4c4cfa5ad9ecb29f599a91dc0d5a7ebed /bin10/make_ver.bat
parenteafbbac58b6a159c6c67f81d8093213e174b1672 (diff)
- final libs adaptation for MSVC 2012
- pre-build stuff moved to 'build' folder git-svn-id: http://svn.miranda-ng.org/main/trunk@2685 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'bin10/make_ver.bat')
-rw-r--r--bin10/make_ver.bat38
1 files changed, 0 insertions, 38 deletions
diff --git a/bin10/make_ver.bat b/bin10/make_ver.bat
deleted file mode 100644
index 515b8406de..0000000000
--- a/bin10/make_ver.bat
+++ /dev/null
@@ -1,38 +0,0 @@
-@echo off
-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 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 %%k %2
- )
-
-goto :eof
-
-:WriteVer
-if "%OldVer%" == "%1,%2,%3,%4" (goto :eof)
-
-for /f "delims=/ tokens=1-3" %%a in ("%DATE:~4%") do (
- for /f "delims=:. tokens=1-4" %%m in ("%TIME: =0%") do (
- set TempFileName=%TEMP%\basename-%%c-%%b-%%a-%%m%%n%%o%%p
- )
-)
-
-copy m_version.h.in "%TempFileName%"
-
-echo #define MIRANDA_VERSION_FILEVERSION %1,%2,%3,%4 >> "%TempFileName%"
-echo #define MIRANDA_VERSION_STRING "%1.%2.%3.%4" >> "%TempFileName%"
-echo #define MIRANDA_VERSION_DISPLAY "%1.%2.%3 alpha build #%4" >> "%TempFileName%"
-echo #define MIRANDA_VERSION_DWORD MIRANDA_MAKE_VERSION(%1, %2, %3, %4) >> "%TempFileName%"
-echo #define MIRANDA_VERSION_CORE MIRANDA_MAKE_VERSION(%1, %2, %3, 0) >> "%TempFileName%"
-echo #define MIRANDA_VERSION_CORE_STRING "%1.%2.%3.0" >> "%TempFileName%"
-echo. >> "%TempFileName%"
-echo #endif // M_VERSION_H__ >> "%TempFileName%"
-
-move /Y "%TempFileName%" ..\include\m_version.h
-goto :eof