From 691d57ff35c89949b02480ce1e9a946f62ee9001 Mon Sep 17 00:00:00 2001 From: sasbot <> Date: Sat, 6 Jun 2020 12:00:00 +0000 Subject: [PATCH] update zmp --- UpdatePlus.cmd | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/UpdatePlus.cmd b/UpdatePlus.cmd index 4d274c857..fdbc24e5b 100644 --- a/UpdatePlus.cmd +++ b/UpdatePlus.cmd @@ -2,27 +2,49 @@ hg incoming "https://bitbucket.org/sas_team/sas.plus.maps/" ::echo %ERRORLEVEL% IF ERRORLEVEL 9009 goto NoHg +IF ERRORLEVEL 255 goto CloneRepo IF ERRORLEVEL 2 goto err IF ERRORLEVEL 1 goto noupdates IF ERRORLEVEL 0 goto ok +IF ERRORLEVEL -1 goto CloneRepo goto err :ok - echo Забираем изменения из репозитория + echo ࠥ ९ hg pull "https://bitbucket.org/sas_team/sas.plus.maps/" -u -f IF ERRORLEVEL 1 goto err IF NOT ERRORLEVEL 0 goto err -rem call BuildZMmp.cmd + for /R /D %%d in (*.zmp) do rd /q %%d 2> nul + goto end +:CloneRepo + rd /s /q sas.plus.maps + echo ९ ࢥ + hg clone "https://bitbucket.org/sas_team/sas.plus.maps/" sas.plus.maps + IF NOT ERRORLEVEL 0 goto err + echo 㥬 ९ਥ ⥪ + move /Y sas.plus.maps\.hg .\.hg + IF NOT ERRORLEVEL 0 goto errMoveHg + echo 塞 ६ ᮧ + rd /s /q sas.plus.maps + IF NOT ERRORLEVEL 0 goto errRemoveTemp + echo 塞 䠩 ᫥ ᨨ + hg update -c goto end :noupdates - echo Нет новых изменений + echo goto end :err - echo Ошибка связи с сервером + echo 訡 裡 ࢥ஬ + goto end +:errMoveHg + echo 訡 ६饭 .hg + goto end +:errRemoveTemp + echo 訡 㤠 ६ sas.plus.maps goto end :NoHg - echo Не установлен Mercurial + echo ⠭ Mercurial goto end :end pause \ No newline at end of file