Leaked source code of windows server 2003
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.

346 lines
11 KiB

  1. @echo off
  2. setlocal
  3. set buildnum=
  4. set diasdkpath=
  5. set pribins=vinitd0
  6. if "%srcdir%" == "" (
  7. set srcdir=%_ntdrive%\nt\sdktools\debuggers
  8. )
  9. pushd .
  10. :param
  11. rem if /i not "%param%" == "" echo param %1
  12. if "%1" == "" goto testbuild
  13. if /i "%1" == "ia64" (
  14. set platform=ia64
  15. ) else if /i "%1" == "x86" (
  16. set platform=x86
  17. ) else if /i "%1" == "amd64" (
  18. set platform=amd64
  19. ) else if exist \\cpvsbuild\drops\v7.0\raw\%1\build_complete.sem (
  20. set buildnum=%1
  21. ) else if /i "%1" == "vinit" (
  22. set buildnum=vinit
  23. ) else if /i "%1" == "pat" (
  24. set buildnum=pat
  25. ) else (
  26. echo %1 is an unknown paramter...
  27. goto end
  28. )
  29. :next
  30. shift
  31. goto param
  32. :testbuild
  33. if "%buildnum%" == "" (
  34. dir /w /ad \\cpvsbuild\drops\v7.0\raw
  35. echo.
  36. echo You must specify a build number...
  37. goto end
  38. )
  39. if "%buildnum%" == "vinit" goto vinit
  40. if "%buildnum%" == "pat" goto pat
  41. :vs drop -----------------------------------------------------------------
  42. if not exist \\cpvsbuild\drops\v7.0\raw\%buildnum%\build_complete.sem (
  43. dir /w /ad \\cpvsbuild\drops\v7.0\raw
  44. echo.
  45. echo Build %buildnum% does not exist.
  46. GOTO end
  47. )
  48. if "%platform%" == "x86" goto vscopy
  49. if "%platform%" == "ia64" goto vscopy
  50. if not exist \\jcox04\x86_64\%buildnum%\. (
  51. dir /w /ad \\jcox04\x86_64
  52. echo.
  53. echo Build %buildnum% does not exist for AMD64.
  54. goto end
  55. )
  56. :vscopy
  57. echo copying bits from VS build %buildnum%...
  58. set DIASDKPATH=\\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk
  59. if not "%platform%" == "" goto %platform%
  60. :x86
  61. echo.
  62. echo x86
  63. cd %srcdir%\vs\i386
  64. sd edit diaguids.lib
  65. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk\lib\diaguids.lib
  66. sd edit diaguidsd.lib
  67. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk\lib\diaguidsd.lib
  68. sd edit msdia71-msvcrt.lib
  69. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msdia71-msvcrt.lib
  70. sd edit msdia71d-msvcrt.lib
  71. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msdia71d-msvcrt.lib
  72. sd edit msobj71-msvcrt.lib
  73. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msobj71-msvcrt.lib
  74. sd edit msobj71d-msvcrt.lib
  75. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msobj71d-msvcrt.lib
  76. sd edit mspdb71-msvcrt.lib
  77. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\mspdb71-msvcrt.lib
  78. sd edit mspdb71d-msvcrt.lib
  79. xcopy /f \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\mspdb71d-msvcrt.lib
  80. if not "%platform%" == "" goto header
  81. :ia64
  82. echo.
  83. echo ia64
  84. cd %srcdir%\vs\ia64
  85. sd edit diaguids.lib
  86. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguids.lib
  87. sd edit diaguidsd.lib
  88. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguidsd.lib
  89. sd edit msdia71-msvcrt.lib
  90. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msdia71-msvcrt.lib
  91. sd edit msdia71d-msvcrt.lib
  92. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msdia71d-msvcrt.lib
  93. sd edit msobj71-msvcrt.lib
  94. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msobj71-msvcrt.lib
  95. sd edit msobj71d-msvcrt.lib
  96. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msobj71d-msvcrt.lib
  97. sd edit mspdb71-msvcrt.lib
  98. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\mspdb71-msvcrt.lib
  99. sd edit mspdb71d-msvcrt.lib
  100. xcopy /f \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\mspdb71d-msvcrt.lib
  101. if not "%platform%" == "" goto header
  102. :amd64
  103. echo.
  104. echo amd64
  105. cd %srcdir%\vs\amd64
  106. sd edit diaguids.lib
  107. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguids.lib
  108. sd edit diaguidsd.lib
  109. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguidsd.lib
  110. sd edit msdia71-msvcrt.lib
  111. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msdia71-msvcrt.lib
  112. sd edit msdia71d-msvcrt.lib
  113. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msdia71d-msvcrt.lib
  114. sd edit msobj71-msvcrt.lib
  115. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msobj71-msvcrt.lib
  116. sd edit msobj71d-msvcrt.lib
  117. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msobj71d-msvcrt.lib
  118. sd edit mspdb71-msvcrt.lib
  119. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\mspdb71-msvcrt.lib
  120. sd edit mspdb71d-msvcrt.lib
  121. xcopy /f \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\mspdb71d-msvcrt.lib
  122. goto header
  123. :vinit --------------------------------------------------------------------
  124. echo copying bits from Vinit...
  125. set DIASDKPATH=\\vinitd0\public\dia2\nt
  126. if not "%platform%" == "" goto vinit_%platform%
  127. :vinit_x86
  128. echo.
  129. echo x86
  130. cd %srcdir%\vs\i386
  131. sd edit diaguids.lib
  132. xcopy /f \\vinitd0\public\dia2\nt\x86\diaguids.lib
  133. sd edit diaguidsd.lib
  134. xcopy /f \\vinitd0\public\dia2\nt\x86\diaguidsd.lib
  135. sd edit msdia71-msvcrt.lib
  136. xcopy /f \\vinitd0\public\dia2\nt\x86\msdia71-msvcrt.lib
  137. sd edit msdia71d-msvcrt.lib
  138. xcopy /f \\vinitd0\public\dia2\nt\x86\msdia71d-msvcrt.lib
  139. sd edit msobj71-msvcrt.lib
  140. xcopy /f \\vinitd0\public\dia2\nt\x86\msobj71-msvcrt.lib
  141. sd edit msobj71d-msvcrt.lib
  142. xcopy /f \\vinitd0\public\dia2\nt\x86\msobj71d-msvcrt.lib
  143. sd edit mspdb71-msvcrt.lib
  144. xcopy /f \\vinitd0\public\dia2\nt\x86\mspdb71-msvcrt.lib
  145. sd edit mspdb71d-msvcrt.lib
  146. xcopy /f \\vinitd0\public\dia2\nt\x86\mspdb71d-msvcrt.lib
  147. if not "%platform%" == "" goto header
  148. :vinit_ia64
  149. echo.
  150. echo ia64
  151. cd %srcdir%\vs\ia64
  152. sd edit diaguids.lib
  153. xcopy /f \\vinitd0\public\dia2\nt\ia64\diaguids.lib
  154. sd edit diaguidsd.lib
  155. xcopy /f \\vinitd0\public\dia2\nt\ia64\diaguidsd.lib
  156. sd edit msdia71-msvcrt.lib
  157. xcopy /f \\vinitd0\public\dia2\nt\ia64\msdia71-msvcrt.lib
  158. sd edit msdia71d-msvcrt.lib
  159. xcopy /f \\vinitd0\public\dia2\nt\ia64\msdia71d-msvcrt.lib
  160. sd edit msobj71-msvcrt.lib
  161. xcopy /f \\vinitd0\public\dia2\nt\ia64\msobj71-msvcrt.lib
  162. sd edit msobj71d-msvcrt.lib
  163. xcopy /f \\vinitd0\public\dia2\nt\ia64\msobj71d-msvcrt.lib
  164. sd edit mspdb71-msvcrt.lib
  165. xcopy /f \\vinitd0\public\dia2\nt\ia64\mspdb71-msvcrt.lib
  166. sd edit mspdb71d-msvcrt.lib
  167. xcopy /f \\vinitd0\public\dia2\nt\ia64\mspdb71d-msvcrt.lib
  168. if not "%platform%" == "" goto header
  169. :vinit_amd64
  170. echo.
  171. echo amd64
  172. cd %srcdir%\vs\amd64
  173. sd edit diaguids.lib
  174. xcopy /f \\vinitd0\public\dia2\nt\amd64\diaguids.lib
  175. sd edit diaguidsd.lib
  176. xcopy /f \\vinitd0\public\dia2\nt\amd64\diaguidsd.lib
  177. sd edit msdia71-msvcrt.lib
  178. xcopy /f \\vinitd0\public\dia2\nt\amd64\msdia71-msvcrt.lib
  179. sd edit msdia71d-msvcrt.lib
  180. xcopy /f \\vinitd0\public\dia2\nt\amd64\msdia71d-msvcrt.lib
  181. sd edit msobj71-msvcrt.lib
  182. xcopy /f \\vinitd0\public\dia2\nt\amd64\msobj71-msvcrt.lib
  183. sd edit msobj71d-msvcrt.lib
  184. xcopy /f \\vinitd0\public\dia2\nt\amd64\msobj71d-msvcrt.lib
  185. sd edit mspdb71-msvcrt.lib
  186. xcopy /f \\vinitd0\public\dia2\nt\amd64\mspdb71-msvcrt.lib
  187. sd edit mspdb71d-msvcrt.lib
  188. xcopy /f /f \\vinitd0\public\dia2\nt\amd64\mspdb71d-msvcrt.lib
  189. if not "%platform%" == "" goto header
  190. :pat ----------------------------------------------------------------------
  191. echo copying bits from Pat...
  192. set src=patst2
  193. set DIASDKPATH=\\vinitd0\public\dia2\nt
  194. if not "%platform%" == "" goto pat_%platform%
  195. :pat_x86
  196. echo.
  197. echo x86
  198. cd %srcdir%\vs\i386
  199. sd edit diaguids.lib
  200. xcopy /f \\%src%\diadrop\x86\diaguids.lib
  201. sd edit diaguidsd.lib
  202. xcopy /f \\%src%\diadrop\x86\diaguidsd.lib
  203. sd edit msdia71-msvcrt.lib
  204. xcopy /f \\%src%\diadrop\x86\msdia71-msvcrt.lib
  205. sd edit msdia71d-msvcrt.lib
  206. xcopy /f \\%src%\diadrop\x86\msdia71d-msvcrt.lib
  207. sd edit msobj71-msvcrt.lib
  208. xcopy /f \\%src%\diadrop\x86\msobj71-msvcrt.lib
  209. sd edit msobj71d-msvcrt.lib
  210. xcopy /f \\%src%\diadrop\x86\msobj71d-msvcrt.lib
  211. sd edit mspdb71-msvcrt.lib
  212. xcopy /f \\%src%\diadrop\x86\mspdb71-msvcrt.lib
  213. sd edit mspdb71d-msvcrt.lib
  214. xcopy /f \\%src%\diadrop\x86\mspdb71d-msvcrt.lib
  215. if not "%platform%" == "" goto pat_header
  216. :pat_ia64
  217. echo.
  218. echo ia64
  219. cd %srcdir%\vs\ia64
  220. sd edit diaguids.lib
  221. xcopy /f \\%src%\diadrop\ia64\diaguids.lib
  222. sd edit diaguidsd.lib
  223. xcopy /f \\%src%\diadrop\ia64\diaguidsd.lib
  224. sd edit msdia71-msvcrt.lib
  225. xcopy /f \\%src%\diadrop\ia64\msdia71-msvcrt.lib
  226. sd edit msdia71d-msvcrt.lib
  227. xcopy /f \\%src%\diadrop\ia64\msdia71d-msvcrt.lib
  228. sd edit msobj71-msvcrt.lib
  229. xcopy /f \\%src%\diadrop\ia64\msobj71-msvcrt.lib
  230. sd edit msobj71d-msvcrt.lib
  231. xcopy /f \\%src%\diadrop\ia64\msobj71d-msvcrt.lib
  232. sd edit mspdb71-msvcrt.lib
  233. xcopy /f \\%src%\diadrop\ia64\mspdb71-msvcrt.lib
  234. sd edit mspdb71d-msvcrt.lib
  235. xcopy /f \\%src%\diadrop\ia64\mspdb71d-msvcrt.lib
  236. if not "%platform%" == "" goto pat_header
  237. :pat_amd64
  238. echo.
  239. echo amd64
  240. cd %srcdir%\vs\amd64
  241. sd edit diaguids.lib
  242. xcopy /f \\%src%\diadrop\amd64\diaguids.lib
  243. sd edit diaguidsd.lib
  244. xcopy /f \\%src%\diadrop\amd64\diaguidsd.lib
  245. sd edit msdia71-msvcrt.lib
  246. xcopy /f \\%src%\diadrop\amd64\msdia71-msvcrt.lib
  247. sd edit msdia71d-msvcrt.lib
  248. xcopy /f \\%src%\diadrop\amd64\msdia71d-msvcrt.lib
  249. sd edit msobj71-msvcrt.lib
  250. xcopy /f \\%src%\diadrop\amd64\msobj71-msvcrt.lib
  251. sd edit msobj71d-msvcrt.lib
  252. xcopy /f \\%src%\diadrop\amd64\msobj71d-msvcrt.lib
  253. sd edit mspdb71-msvcrt.lib
  254. xcopy /f \\%src%\diadrop\amd64\mspdb71-msvcrt.lib
  255. sd edit mspdb71d-msvcrt.lib
  256. xcopy /f \\%src%\diadrop\amd64\mspdb71d-msvcrt.lib
  257. :pat_header
  258. echo headers
  259. cd %srcdir%\vs
  260. sd edit dia2.h
  261. xcopy /f \\%src%\diadrop\inc\dia2.h
  262. REM *** Following include and doc files are not currently dropped
  263. sd edit diacreate_int.h
  264. xcopy /f \\%src%\diadrop\inc\diacreate_int.h
  265. sd edit cvinfo.h
  266. xcopy /f \\%src%\diadrop\inc\cvinfo.h
  267. sd edit cvconst.h
  268. xcopy /f \\%src%\diadrop\inc\cvconst.h
  269. goto end
  270. :header ------------------------------------------------------------------
  271. echo headers
  272. cd %srcdir%\vs
  273. sd edit dia2.h
  274. xcopy /f %DIASDKPATH%\include\dia2.h
  275. REM *** Following include and doc files are not currently dropped
  276. sd edit diacreate_int.h
  277. xcopy /f \\vinitd0\public\dia2\nt\include\diacreate_int.h
  278. rem sd edit diasdk.chm
  279. rem xcopy /f \\vinitd0\public\dia2\doc\diasdk.chm
  280. sd edit cvinfo.h
  281. xcopy /f \\vinitd0\public\dia2\nt\include\cvinfo.h
  282. sd edit cvconst.h
  283. xcopy /f %DIASDKPATH%\include\cvconst.h
  284. :end ---------------------------------------------------------------------
  285. popd