summaryrefslogtreecommitdiff
path: root/tools/build_scripts/bin15
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_scripts/bin15')
-rw-r--r--tools/build_scripts/bin15/MirUpdateStatrt64.bat40
-rw-r--r--tools/build_scripts/bin15/MirUpdateStatrt86.bat40
-rw-r--r--tools/build_scripts/bin15/git_update.bat5
-rw-r--r--tools/build_scripts/bin15/svn_update.bat21
-rw-r--r--tools/build_scripts/bin15/vad.bat21
-rw-r--r--tools/build_scripts/bin15/vad64.bat21
-rw-r--r--tools/build_scripts/bin15/w_Rebuild_Plugins64.bat33
-rw-r--r--tools/build_scripts/bin15/w_Rebuild_Plugins86.bat33
8 files changed, 214 insertions, 0 deletions
diff --git a/tools/build_scripts/bin15/MirUpdateStatrt64.bat b/tools/build_scripts/bin15/MirUpdateStatrt64.bat
new file mode 100644
index 0000000000..bf84ba2e8b
--- /dev/null
+++ b/tools/build_scripts/bin15/MirUpdateStatrt64.bat
@@ -0,0 +1,40 @@
+Set Release=Release64
+Set MirDir=E:\MirandaNG\
+
+for %%i IN (1) do call taskkill /T /IM miranda64.exe
+if %errorlevel% ==0 (goto :EXIT) else (goto :ACT)
+:EXIT
+timeout 1
+for %%i IN (1) do call taskkill /T /IM miranda64.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"
+
+REM pushd %MirDir%
+REM call rebaser.cmd
+REM start /b miranda64.exe
+REM cd Languages\Lang
+REM svn update
+REM popd
+
+pushd "..\langpacks\tool"
+LangpackSuite.exe \q \prussian \o"=MINE=.txt" \n%MirDir%\Languages\Langpack_russian.txt
+popd
+
+pushd %MirDir%
+call rebaser.cmd
+start /b miranda64.exe
+popd \ No newline at end of file
diff --git a/tools/build_scripts/bin15/MirUpdateStatrt86.bat b/tools/build_scripts/bin15/MirUpdateStatrt86.bat
new file mode 100644
index 0000000000..7c5c1949c9
--- /dev/null
+++ b/tools/build_scripts/bin15/MirUpdateStatrt86.bat
@@ -0,0 +1,40 @@
+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"
+
+REM pushd %MirDir%
+REM call rebaser.cmd
+REM start /b miranda32.exe
+REM cd Languages\Lang
+REM svn update
+REM popd
+
+pushd "..\langpacks\tool"
+LangpackSuite.exe \q \prussian \o"=MINE=.txt" \n%MirDir%\Languages\Langpack_russian.txt
+popd
+
+pushd %MirDir%
+call rebaser.cmd
+start /b miranda32.exe
+popd \ No newline at end of file
diff --git a/tools/build_scripts/bin15/git_update.bat b/tools/build_scripts/bin15/git_update.bat
new file mode 100644
index 0000000000..9936973e18
--- /dev/null
+++ b/tools/build_scripts/bin15/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/bin15/svn_update.bat b/tools/build_scripts/bin15/svn_update.bat
new file mode 100644
index 0000000000..e40d4ca610
--- /dev/null
+++ b/tools/build_scripts/bin15/svn_update.bat
@@ -0,0 +1,21 @@
+pushd ..
+
+rem 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/bin15/vad.bat b/tools/build_scripts/bin15/vad.bat
new file mode 100644
index 0000000000..37a24c5879
--- /dev/null
+++ b/tools/build_scripts/bin15/vad.bat
@@ -0,0 +1,21 @@
+rem @echo off
+
+pushd ..\plugins
+
+pushd mRadio
+call make.bat fpc 15
+if errorlevel 1 goto :Error
+popd
+
+pushd QuickSearch
+call make.bat fpc 15
+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/bin15/vad64.bat b/tools/build_scripts/bin15/vad64.bat
new file mode 100644
index 0000000000..d5d2b8cb4a
--- /dev/null
+++ b/tools/build_scripts/bin15/vad64.bat
@@ -0,0 +1,21 @@
+rem @echo off
+
+pushd ..\plugins
+
+pushd mRadio
+call make.bat fpc64 15
+if errorlevel 1 goto :Error
+popd
+
+pushd QuickSearch
+call make.bat fpc64 15
+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/bin15/w_Rebuild_Plugins64.bat b/tools/build_scripts/bin15/w_Rebuild_Plugins64.bat
new file mode 100644
index 0000000000..e89b4cc683
--- /dev/null
+++ b/tools/build_scripts/bin15/w_Rebuild_Plugins64.bat
@@ -0,0 +1,33 @@
+call call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"
+
+call git_update.bat
+
+if exist "Release64" rd /Q /S "Release64" >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="x64" /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 vad64.bat
+
+..\tools\installer_ng_stable\Tools\wget.exe -P Release64/Libs -r -np -nd -nH -R html -e robots=off http://www.miranda-ng.org/distr/build/x64/
+
+rd /S /Q "Release64\Obj"
+
+rem del /F /S /Q "Release64\*.pdb"
+
+rem popd
+
+goto :eof
+
+:Error
+echo ============================= FAIL! =============================
+pause
+exit
diff --git a/tools/build_scripts/bin15/w_Rebuild_Plugins86.bat b/tools/build_scripts/bin15/w_Rebuild_Plugins86.bat
new file mode 100644
index 0000000000..324082714c
--- /dev/null
+++ b/tools/build_scripts/bin15/w_Rebuild_Plugins86.bat
@@ -0,0 +1,33 @@
+call "%ProgramFiles(x86)%\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.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"
+
+..\tools\installer_ng_stable\Tools\wget.exe -P Release/Libs -r -np -nd -nH -R html -e robots=off http://www.miranda-ng.org/distr/build/x86/
+
+rem del /F /S /Q "Release\*.pdb"
+
+rem popd
+
+goto :eof
+
+:Error
+echo ============================= FAIL! =============================
+pause
+exit