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.

163 lines
4.2 KiB

  1. echo off
  2. setlocal
  3. rem look for prevention of building zips
  4. if /i .%4.==.-nobuild. set no_build=yes
  5. if /i .%4.==.-nobuild. shift /4
  6. if /i .%3.==.-nobuild. set no_build=yes
  7. if /i .%3.==.-nobuild. shift /3
  8. if /i .%2.==.-nobuild. set no_build=yes
  9. if /i .%2.==.-nobuild. shift /2
  10. if /i .%1.==.-nobuild. set no_build=yes
  11. if /i .%1.==.-nobuild. shift /1
  12. rem look for prevention of copying binaries up to the xbox
  13. if /i .%3.==.-nocopy. set no_copy=yes
  14. if /i .%3.==.-nocopy. shift /3
  15. if /i .%2.==.-nocopy. set no_copy=yes
  16. if /i .%2.==.-nocopy. shift /2
  17. if /i .%1.==.-nocopy. set no_copy=yes
  18. if /i .%1.==.-nocopy. shift /1
  19. rem look for stuff that prevents dependencies from being built
  20. if /i .%2.==.-nodep. set no_dependency=yes
  21. if /i .%2.==.-nodep. shift /2
  22. if /i .%1.==.-nodep. set no_dependency=yes
  23. if /i .%1.==.-nodep. shift /1
  24. rem Deal with all of the different configs
  25. if /i .%1.==.-all. set do_platform=yes
  26. if /i .%1.==.-all. set do_hl2=yes
  27. if /i .%1.==.-all. set do_episodic=yes
  28. if /i .%1.==.-all. set do_ep2=yes
  29. if /i .%1.==.-all. set do_tf=yes
  30. if /i .%1.==.-all. set do_portal=yes
  31. if /i .%1.==.-episodic. set do_episodic=yes
  32. if /i .%1.==.-ep2. set do_ep2=yes
  33. if /i .%1.==.-tf. set do_tf=yes
  34. if /i .%1.==.-portal. set do_portal=yes
  35. if /i .%1.==.-hl2. set do_hl2=yes
  36. if /i .%1.==.-platform. set do_platform=yes
  37. rem skip these if no dependencies should be built
  38. if .%no_dependency%.==.yes. goto START
  39. if /i .%1.==.-ep2. set do_episodic=yes
  40. if /i .%1.==.-ep2. set do_hl2=yes
  41. if /i .%1.==.-episodic. set do_hl2=yes
  42. if /i .%1.==.-tf. set do_hl2=yes
  43. if /i .%1.==.-portal. set do_hl2=yes
  44. set do_platform=yes
  45. :START
  46. pushd.
  47. cd %VPROJECT%\..
  48. set XBCP="%XEDK%\bin\win32\xbcp.exe"
  49. set ZIPDIR=%TEMP%\xzips
  50. if not exist %ZIPDIR% mkdir %ZIPDIR%
  51. :PLATFORM
  52. if not .%do_platform%.==.yes. goto HL2
  53. REM
  54. REM PLATFORM
  55. REM
  56. echo Builing platform zip...
  57. pushd.
  58. cd platform
  59. if not exist %ZIPDIR%\platform mkdir %ZIPDIR%\platform
  60. if .%no_build%.==.yes. goto PLATFORMCOPY
  61. if exist %ZIPDIR%\platform\zip0.360.zip del %ZIPDIR%\platform\zip0.360.zip
  62. makegamedata -q -z %ZIPDIR%\platform\zip0.360.zip
  63. :PLATFORMCOPY
  64. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\platform\zip0.360.zip xe:\valve\platform\zip0.360.zip
  65. popd.
  66. :HL2
  67. if not .%do_hl2%.==.yes. goto EPISODIC
  68. REM
  69. REM HL2
  70. REM
  71. echo Builing hl2 zip...
  72. pushd.
  73. cd hl2
  74. if not exist %ZIPDIR%\hl2 mkdir %ZIPDIR%\hl2
  75. if .%no_build%.==.yes. goto HL2COPY
  76. if exist %ZIPDIR%\hl2\zip0.360.zip del %ZIPDIR%\hl2\zip0.360.zip
  77. makegamedata -q -z %ZIPDIR%\hl2\zip0.360.zip
  78. :HL2COPY
  79. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\hl2\zip0.360.zip xe:\valve\hl2\zip0.360.zip
  80. popd.
  81. :EPISODIC
  82. if not .%do_episodic%.==.yes. goto EP2
  83. REM
  84. REM EPISODIC
  85. REM
  86. echo Builing episodic zip...
  87. pushd.
  88. cd episodic
  89. if not exist %ZIPDIR%\episodic mkdir %ZIPDIR%\episodic
  90. if .%no_build%.==.yes. goto EPISODICCOPY
  91. if exist %ZIPDIR%\episodic\zip0.360.zip del %ZIPDIR%\episodic\zip0.360.zip
  92. makegamedata -q -z %ZIPDIR%\episodic\zip0.360.zip
  93. :EPISODICCOPY
  94. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\episodic\zip0.360.zip xe:\valve\episodic\zip0.360.zip
  95. popd.
  96. :EP2
  97. if not .%do_ep2%.==.yes. goto TF
  98. REM
  99. REM EP2
  100. REM
  101. echo Builing ep2 zip...
  102. pushd.
  103. cd ep2
  104. if not exist %ZIPDIR%\ep2 mkdir %ZIPDIR%\ep2
  105. if .%no_build%.==.yes. goto EP2COPY
  106. if exist %ZIPDIR%\ep2\zip0.360.zip del %ZIPDIR%\ep2\zip0.360.zip
  107. makegamedata -q -z %ZIPDIR%\ep2\zip0.360.zip
  108. :EP2COPY
  109. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\ep2\zip0.360.zip xe:\valve\ep2\zip0.360.zip
  110. popd.
  111. :TF
  112. if not .%do_tf%.==.yes. goto PORTAL
  113. REM
  114. REM TF
  115. REM
  116. echo Builing tf2 zip...
  117. pushd.
  118. cd tf
  119. if not exist %ZIPDIR%\tf mkdir %ZIPDIR%\tf
  120. if .%no_build%.==.yes. goto TFCOPY
  121. if exist %ZIPDIR%\tf\zip0.360.zip del %ZIPDIR%\tf\zip0.360.zip
  122. makegamedata -q -z %ZIPDIR%\tf\zip0.360.zip
  123. :TFCOPY
  124. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\tf\zip0.360.zip xe:\valve\tf\zip0.360.zip
  125. popd.
  126. :PORTAL
  127. if not .%do_portal%.==.yes. goto END
  128. REM
  129. REM PORTAL
  130. REM
  131. echo Builing portal zip...
  132. pushd.
  133. cd portal
  134. if not exist %ZIPDIR%\portal mkdir %ZIPDIR%\portal
  135. if .%no_build%.==.yes. goto PORTALCOPY
  136. if exist %ZIPDIR%\portal\zip0.360.zip del %ZIPDIR%\portal\zip0.360.zip
  137. makegamedata -q -z %ZIPDIR%\portal\zip0.360.zip
  138. :PORTALCOPY
  139. if not .%no_copy%.==.yes. %XBCP% /Y %ZIPDIR%\portal\zip0.360.zip xe:\valve\portal\zip0.360.zip
  140. popd.
  141. :END
  142. popd.
  143. endlocal