summaryrefslogtreecommitdiff
path: root/tools/build_scripts/bin12/MirUpdateStatrt.bat
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_scripts/bin12/MirUpdateStatrt.bat')
-rw-r--r--tools/build_scripts/bin12/MirUpdateStatrt.bat31
1 files changed, 31 insertions, 0 deletions
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