Guest User

Untitled

a guest
Feb 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. @echo off
  2.  
  3. set options=-Prtzil --executability --delete-after --delete-excluded --stats
  4.  
  5. if exist Xonotic-low goto xonoticlow
  6. if exist Xonotic-high goto xonotichigh
  7. goto xonotic
  8. :xonoticlow
  9. set url=rsync://beta.xonotic.org/autobuild-Xonotic-low/
  10. set target=Xonotic-low/
  11. goto endbit
  12. :xonotichigh
  13. set url=rsync://beta.xonotic.org/autobuild-Xonotic-high/
  14. set target=Xonotic-high/
  15. goto endbit
  16. :xonotic
  17. set url=rsync://beta.xonotic.org/autobuild-Xonotic/
  18. set target=Xonotic/
  19. goto endbit
  20. :endxonotic
  21.  
  22. set excludes=
  23. set excludes=%excludes% --exclude=/xonotic-linux*
  24. set excludes=%excludes% --exclude=/xonotic-osx-*
  25. set excludes=%excludes% --exclude=/Xonotic*.app
  26. set excludes=%excludes% --exclude=/fteqcc/fteqcc.linux*
  27. set excludes=%excludes% --exclude=/fteqcc/fteqcc.osx
  28.  
  29. if "%ProgramFiles(x86)%" == "" goto bit32
  30. :bit64
  31. set excludes=%excludes% --exclude=/xonotic.exe
  32. set excludes=%excludes% --exclude=/xonotic-sdl.exe
  33. set excludes=%excludes% --exclude=/xonotic-dedicated.exe
  34. set excludes=%excludes% --exclude=/fteqcc/fteqcc.exe
  35. set excludes=%excludes% --exclude=/bin32
  36. set excludes=%excludes% --exclude=/*.dll
  37. goto endbit
  38. :bit32
  39. set excludes=%excludes% --exclude=/xonotic-x64.exe
  40. set excludes=%excludes% --exclude=/xonotic-x64-sdl.exe
  41. set excludes=%excludes% --exclude=/xonotic-x64-dedicated.exe
  42. set excludes=%excludes% --exclude=/fteqcc/fteqcc-x64.exe
  43. set excludes=%excludes% --exclude=/bin64
  44. goto endbit
  45. :endbit
  46.  
  47. rsync %options% %excludes% %url% %target%
  48. chmod -R a+x %target%
  49. pause
Add Comment
Please, Sign In to add comment