25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Update.cmd 1.3 KiB

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