You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UpdatePlus.cmd 1.4 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @echo off
  2. hg incoming "https://bitbucket.org/sas_team/sas.plus.maps/"
  3. ::echo %ERRORLEVEL%
  4. IF ERRORLEVEL 9009 goto NoHg
  5. IF ERRORLEVEL 255 goto CloneRepo
  6. IF ERRORLEVEL 2 goto err
  7. IF ERRORLEVEL 1 goto noupdates
  8. IF ERRORLEVEL 0 goto ok
  9. IF ERRORLEVEL -1 goto CloneRepo
  10. goto err
  11. :ok
  12. echo ࠥ ९
  13. hg pull "https://bitbucket.org/sas_team/sas.plus.maps/" -u -f
  14. IF ERRORLEVEL 1 goto err
  15. IF NOT ERRORLEVEL 0 goto err
  16. for /R /D %%d in (*.zmp) do rd /q %%d 2> nul
  17. goto end
  18. :CloneRepo
  19. rd /s /q sas.plus.maps
  20. echo ९ ࢥ
  21. hg clone "https://bitbucket.org/sas_team/sas.plus.maps/" sas.plus.maps
  22. IF NOT ERRORLEVEL 0 goto err
  23. echo 㥬 ९ਥ ⥪
  24. move /Y sas.plus.maps\.hg .\.hg
  25. IF NOT ERRORLEVEL 0 goto errMoveHg
  26. echo 塞 ६ ᮧ
  27. rd /s /q sas.plus.maps
  28. IF NOT ERRORLEVEL 0 goto errRemoveTemp
  29. echo 塞 䠩 ᫥ ᨨ
  30. hg update -c
  31. goto end
  32. :noupdates
  33. echo
  34. goto end
  35. :err
  36. echo 訡 裡 ࢥ஬
  37. goto end
  38. :errMoveHg
  39. echo 訡 ६饭 .hg
  40. goto end
  41. :errRemoveTemp
  42. echo 訡 㤠 ६ sas.plus.maps
  43. goto end
  44. :NoHg
  45. echo ⠭ Mercurial
  46. goto end
  47. :end
  48. pause