From 8a1a2822311298737c8ab03709463074581b4d4a Mon Sep 17 00:00:00 2001 From: sasgis <> Date: Sat, 12 Dec 1970 12:00:00 +0000 Subject: [PATCH] update zmp --- Update.cmd | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Update.cmd diff --git a/Update.cmd b/Update.cmd new file mode 100644 index 000000000..2e00c25c0 --- /dev/null +++ b/Update.cmd @@ -0,0 +1,28 @@ +@echo off +hg incoming "https://bitbucket.org/vdemidov/sas.maps/" +::echo %ERRORLEVEL% +IF ERRORLEVEL 9009 goto NoHg +IF ERRORLEVEL 2 goto err +IF ERRORLEVEL 1 goto noupdates +IF ERRORLEVEL 0 goto ok + +goto err + +:ok + echo Забираем изменения из репозитория + hg pull "https://bitbucket.org/vdemidov/sas.maps/" -u -f + IF ERRORLEVEL 1 goto err + IF NOT ERRORLEVEL 0 goto err +rem call BuildZMmp.cmd + goto end +:noupdates + echo Нет новых изменений + goto end +:err + echo Ошибка связи с сервером + goto end +:NoHg + echo Не установлен Mercurial + goto end +:end +pause \ No newline at end of file