summaryrefslogtreecommitdiff
path: root/tools/build_scripts/bin12
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_scripts/bin12')
-rw-r--r--tools/build_scripts/bin12/CloseMiranda.vbs11
-rw-r--r--tools/build_scripts/bin12/MirUpdateStatrt.bat31
-rw-r--r--tools/build_scripts/bin12/git_update.bat5
-rw-r--r--tools/build_scripts/bin12/svn_update.bat21
-rw-r--r--tools/build_scripts/bin12/vad.bat21
-rw-r--r--tools/build_scripts/bin12/vad64.bat21
-rw-r--r--tools/build_scripts/bin12/w_Rebuild_Plugins.bat31
7 files changed, 141 insertions, 0 deletions
diff --git a/tools/build_scripts/bin12/CloseMiranda.vbs b/tools/build_scripts/bin12/CloseMiranda.vbs
new file mode 100644
index 0000000000..6ef02f0912
--- /dev/null
+++ b/tools/build_scripts/bin12/CloseMiranda.vbs
@@ -0,0 +1,11 @@
+Set objShell = CreateObject("WScript.Shell")
+Set objWmi = GetObject("winmgmts:")
+
+
+strWmiq = "select * from Win32_Process where name='miranda32.exe'"
+Set objQResult = objWmi.Execquery(strWmiq)
+
+
+For Each objProcess In objQResult
+intRet = objProcess.Terminate(1)
+Next \ No newline at end of file
diff --git a/tools/build_scripts/bin12/MirUpdateStatrt.bat b/tools/build_scripts/bin12/MirUpdateStatrt.bat
new file mode 100644
index 0000000000..16916b6128
--- /dev/null
+++ b/tools/build_scripts/bin12/MirUpdateStatrt.bat
@@ -0,0 +1,31 @@
+Set Release=Release
+Set MirDir=E:\MirandaNG\
+
+for %%i IN (1) do call taskkill /T /IM miranda32.exe
+if %errorlevel% ==0 (goto :EXIT) else (goto :ACT)
+:EXIT
+timeout 1
+for %%i IN (1) do call taskkill /T /IM miranda32.exe
+if %errorlevel% ==0 goto :EXIT
+
+:ACT
+pushd %Release%
+rd /s /q OBJ >nul
+popd
+xcopy /S /Y "%Release%\*.dll" "%MirDir%"
+xcopy /S /Y "%Release%\*.mir" "%MirDir%"
+copy /V /Y "%Release%\Plugins\tox.ini" "%MirDir%\Plugins\"
+copy /V /Y "%Release%\miranda*.exe" "%MirDir%"
+del /F /S /Q "%Release%\*.dll" >> nul
+del /F /S /Q "%Release%\*.mir" >> nul
+del /F /Q "%Release%\miranda*.exe"
+del /F /Q "%Release%\Plugins\tox.ini"
+
+rem rd /S /Q "Release"
+
+pushd %MirDir%
+call rebaser.cmd
+start /b miranda32.exe
+cd Languages\Lang
+svn update
+popd \ No newline at end of file
diff --git a/tools/build_scripts/bin12/git_update.bat b/tools/build_scripts/bin12/git_update.bat
new file mode 100644
index 0000000000..9936973e18
--- /dev/null
+++ b/tools/build_scripts/bin12/git_update.bat
@@ -0,0 +1,5 @@
+pushd ..
+
+git pull --rebase=true --progress -v 2>&1 > update.log
+
+popd \ No newline at end of file
diff --git a/tools/build_scripts/bin12/svn_update.bat b/tools/build_scripts/bin12/svn_update.bat
new file mode 100644
index 0000000000..a6090591a4
--- /dev/null
+++ b/tools/build_scripts/bin12/svn_update.bat
@@ -0,0 +1,21 @@
+pushd ..
+
+del /F /Q version.txt
+
+svn cleanup
+
+svn update > update.log
+
+cd build
+
+for /F %%g in ('svnversion build.no') do set Revision=%%g
+
+for /F "tokens=1,2,3 delims= " %%i in (build.no) do set MirVer=%%i.%%j.%%k
+
+cd ..
+
+rem echo v%MirVer%_%Revision% > version.txt
+
+rem svn log -l 30 >> version.txt
+
+popd \ No newline at end of file
diff --git a/tools/build_scripts/bin12/vad.bat b/tools/build_scripts/bin12/vad.bat
new file mode 100644
index 0000000000..e197fe87c6
--- /dev/null
+++ b/tools/build_scripts/bin12/vad.bat
@@ -0,0 +1,21 @@
+rem @echo off
+
+pushd ..\plugins
+
+pushd mRadio
+call make.bat fpc 12
+if errorlevel 1 goto :Error
+popd
+
+pushd QuickSearch
+call make.bat fpc 12
+if errorlevel 1 goto :Error
+popd
+
+popd
+goto :eof
+
+:Error
+echo ============================= FAIL! =============================
+pause
+exit \ No newline at end of file
diff --git a/tools/build_scripts/bin12/vad64.bat b/tools/build_scripts/bin12/vad64.bat
new file mode 100644
index 0000000000..7a1c45dcf0
--- /dev/null
+++ b/tools/build_scripts/bin12/vad64.bat
@@ -0,0 +1,21 @@
+rem @echo off
+
+pushd ..\plugins
+
+pushd mRadio
+call make.bat fpc64 12
+if errorlevel 1 goto :Error
+popd
+
+pushd QuickSearch
+call make.bat fpc64 12
+if errorlevel 1 goto :Error
+popd
+
+popd
+goto :eof
+
+:Error
+echo ============================= FAIL! =============================
+pause
+exit \ No newline at end of file
diff --git a/tools/build_scripts/bin12/w_Rebuild_Plugins.bat b/tools/build_scripts/bin12/w_Rebuild_Plugins.bat
new file mode 100644
index 0000000000..d61886c103
--- /dev/null
+++ b/tools/build_scripts/bin12/w_Rebuild_Plugins.bat
@@ -0,0 +1,31 @@
+call "%VS120COMNTOOLS%\..\..\VC\vcvarsall.bat"
+
+call git_update.bat
+
+if exist "Release" rd /Q /S "Release" >nul
+
+if exist "..\include\m_version.h" del /F /Q "..\include\m_version.h"
+echo on
+pushd ..\build
+call make_ver.bat
+popd
+
+MsBuild.exe "plugs_vad.sln" /m /t:Rebuild /p:Configuration=Release /p:Platform="Win32" /fileLogger /fileLoggerParameters:LogFile=Logs\plugs_vad.log;errorsonly;warningsonly
+set BUILD_STATUS=%ERRORLEVEL%
+if %BUILD_STATUS%==0 echo Build success
+if not %BUILD_STATUS%==0 goto :Error
+
+call vad.bat
+
+rd /S /Q "Release\Obj"
+
+rem del /F /S /Q "Release\*.pdb"
+
+rem popd
+
+goto :eof
+
+:Error
+echo ============================= FAIL! =============================
+pause
+exit