Team Fortress 2 Source Code as on 22/4/2020
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.

84 lines
3.2 KiB

  1. @echo off
  2. if .%1.== ."". goto usage
  3. if .%2.==.. goto hl2
  4. setlocal
  5. set dest=%2
  6. if %1 == all goto all
  7. if %1 == hl2 goto hl2
  8. if %1 == hl1 goto hl1
  9. if %1 == cstrike goto cstrike
  10. if %1 == goldsrc goto goldsrc
  11. :all
  12. set source=\\hl2vss\hl2vss_mirror\hl2\release\dev
  13. time /t
  14. echo Syncing from $/hl2/release/dev to %dest% (via %source%)
  15. set source=\\hl2vss\hl2vss_mirror\hl2\release\dev
  16. \\hl2vss\hl2vss\win32\robocopy %source% %dest% /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%
  17. set source=\\hl2vss\hl1ports_mirror\hl1ports\release\dev\hl1
  18. echo Syncing from $/hl1ports/release/dev/hl1 to %dest%\hl1 (via %source%)
  19. \\hl2vss\hl2vss\win32\robocopy %source% %dest%\hl1 /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%\hl1
  20. set source=\\hl2vss\hl1ports_mirror\hl1ports\release\dev\cstrike
  21. echo Syncing from $/hl1ports/release/dev/cstrike to %dest%\cstrike (via %source%)
  22. \\hl2vss\hl2vss\win32\robocopy %source% %dest%\cstrike /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%\cstrike
  23. time /t
  24. goto end
  25. :hl2
  26. if .%2.==.. set dest=%1
  27. set source=\\hl2vss\hl2vss_mirror\hl2\release\dev
  28. echo Syncing from $/hl2/release/dev to %dest% (via %source%)
  29. echo.
  30. time /t
  31. \\hl2vss\hl2vss\win32\robocopy %source% %dest% /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%
  32. time /t
  33. goto end
  34. :hl1
  35. set source=\\hl2vss\hl1ports_mirror\hl1ports\release\dev\hl1
  36. echo Syncing from $/hl1ports\release\dev\cstrike to %dest%\hl1 (via %source%)
  37. echo.
  38. time /t
  39. \\hl2vss\hl2vss\win32\robocopy %source% %dest%\hl1 /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%\hl1
  40. time /t
  41. goto end
  42. :cstrike
  43. set source=\\hl2vss\hl1ports_mirror\hl1ports\release\dev\cstrike
  44. echo Syncing from $/hl1ports\release\dev\cstrike to %dest%\cstrike (via %source%)
  45. echo.
  46. time /t
  47. \\hl2vss\hl2vss\win32\robocopy %source% %dest%\cstrike /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\hl2vss\hl2vss\win32\getmirror.exe %source% %dest%\cstrike
  48. time /t
  49. goto end
  50. :goldsrc
  51. set source=\\goldsource\goldsrc_mirror\hl1\release\dev
  52. echo Syncing from $/hl1\release\dev\ to %dest% (via %source%)
  53. echo.
  54. time /t
  55. \\goldsource\gldsrc\win32\robocopy %source% %dest% /e /xo /copy:dat /w:5 /xx /ns /nc /ndl /np /fp /l /njh /njs | \\goldsource\gldsrc\win32\getmirror.exe %source% %dest%
  56. time /t
  57. goto end
  58. :needdest
  59. :Usage
  60. echo . Usage: syncfrommirror.bat [all][hl2][hl1][cstrike][goldsrc][local destination]
  61. echo .
  62. echo .
  63. echo .
  64. echo . Where all sync up to all mirror targets into your destination folder
  65. echo . hl2 sync up to $/hl2/release/dev into your destination folder
  66. echo . hl1 sync up to $/hl1ports/release/dev/hl1 into your destination folder
  67. echo . cstrike sync up to $/h1ports/release/dev/cstrike into your destination folder
  68. echo . goldsrc sync up to $/hl1/release/dev into your destination folder
  69. echo .
  70. echo . If you are syncing to hl1 or cstrike, your destination should be your base
  71. echo . folder with the engine in it (e.g. \hl2\release\dev\)
  72. echo .
  73. goto end
  74. :end