Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Update.cmd 1.2 KiB

il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
il y a 4 ans
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @echo off
  2. set maps_dir=sas.maps
  3. set maps_url="https://github.com/sasgis/sas.maps"
  4. git fetch --verbose %maps_url%
  5. echo %ERRORLEVEL%
  6. if ERRORLEVEL 9009 goto NoGit
  7. if ERRORLEVEL 128 goto CloneRepo
  8. if ERRORLEVEL 0 goto UpdateRepo
  9. if ERRORLEVEL -1 goto CloneRepo
  10. goto err
  11. :CloneRepo
  12. echo ९ ࢥ
  13. rd /s /q %maps_dir%
  14. git clone %maps_url% %maps_dir%
  15. if not ERRORLEVEL 0 goto err
  16. echo 㥬 ९ਥ ⥪
  17. xcopy /i /s /h /e /y %maps_dir%\.git .\.git
  18. if not ERRORLEVEL 0 goto ErrorCopyGit
  19. echo 塞 ६ ᮧ
  20. rd /s /q %maps_dir%
  21. if not ERRORLEVEL 0 goto ErrorRemoveTemp
  22. goto UpdateRepo
  23. :UpdateRepo
  24. echo 塞 䠩 ᫥ ᨨ
  25. git clean -d --force
  26. git reset --hard
  27. goto end
  28. :err
  29. echo 訡 裡 ࢥ஬
  30. goto end
  31. :ErrorCopyGit
  32. echo 訡 ஢ .git
  33. goto end
  34. :ErrorRemoveTemp
  35. echo 訡 㤠 ६ sas.maps
  36. goto end
  37. :NoGit
  38. echo 訡: ⠭ Git
  39. goto end
  40. :end
  41. pause