Radjah

inst_mir.bat

Oct 4th, 2012
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.36 KB | None | 0 0
  1. @echo off
  2. set MIRDIR=d:\miranda-ng
  3. set PLUGDIR=Release
  4. echo [ Updater by Radjah ]
  5. echo.
  6. echo [*] Updating sources...
  7. cd ..
  8. svn up
  9. cd bin10
  10. echo.
  11. echo [*] Building...
  12. del /f /q build.log
  13. start /wait devenv /OUT build.log mir_full_pro.sln /Build
  14. echo.
  15. echo [*] Generating russian langpack..
  16. cd ..\langpacks\ru\
  17. LangpackSuite.exe \q \nLangpack_russian
  18. cd ..\..\bin10
  19. echo.
  20. echo [*] Closing Miranda NG...
  21. %PLUGDIR%\MimCmd.exe quit
  22. echo [*] Waiting...
  23. ping 127.0.0.1 -n 10 > null
  24. taskkill /im /f miranda32.exe
  25. echo [*] Installing Core...
  26. xcopy %PLUGDIR% %MIRDIR% /Y /EXCLUDE:exclude.lst
  27. echo.
  28. echo [*] Installing icons...
  29. xcopy %PLUGDIR%\Icons %MIRDIR%\Icons /Y /E
  30. echo.
  31. echo [*] Installing Core plugins...
  32. xcopy %PLUGDIR%\Core %MIRDIR%\Core /Y /E /EXCLUDE:exclude.lst
  33. echo.
  34. echo [*] Downloading binary plugins...
  35. for /F %%i in (pluginsdl.lst) do (
  36. echo ...%%i
  37. wget http://miranda-ng.org/distr/x32/Plugins/%%i.zip -O %%i.zip
  38. cd %PLUGDIR%
  39. ..\unzip -o ..\%%i.zip
  40. cd ..
  41. del /F /Q %%i.zip)
  42. echo [*] Installing optional plugins...
  43. for /F %%i in (plugins.lst) do (
  44. echo ...%%i into %MIRDIR%Plugins\...
  45. copy /Y %PLUGDIR%\Plugins\%%i %MIRDIR%\Plugins\%%i)
  46. echo.
  47. echo [*] Installing russian langpack...
  48. copy ..\langpacks\ru\Langpack_russian.txt %MIRDIR%\
  49. echo.
  50. echo [*] Running Miranda NG...
  51. cd %MIRDIR%
  52. start Miranda32.exe
  53. echo.
  54. echo [*] Done!
  55. pause
Advertisement
Add Comment
Please, Sign In to add comment