Source code of Windows XP (NT5)
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.

239 lines
7.6 KiB

  1. @echo off
  2. setlocal
  3. set buildnum=
  4. set diasdkpath=
  5. pushd .
  6. :param
  7. rem if /i not "%param%" == "" echo param %1
  8. if "%1" == "" goto testbuild
  9. if /i "%1" == "ia64" (
  10. set platform=ia64
  11. ) else if /i "%1" == "x86" (
  12. set platform=x86
  13. ) else if /i "%1" == "amd64" (
  14. set platform=amd64
  15. ) else if exist \\cpvsbuild\drops\v7.0\raw\%1\. (
  16. set buildnum=%1
  17. ) else if /i "%1" == "paul" (
  18. set buildnum=paul
  19. ) else (
  20. echo %1 is an unknown paramter...
  21. goto end
  22. )
  23. :next
  24. shift
  25. goto param
  26. :testbuild
  27. if "%buildnum%" == "" (
  28. dir /w /ad \\cpvsbuild\drops\v7.0\raw
  29. echo.
  30. echo You must specify a build number...
  31. goto end
  32. )
  33. if "%buildnum%" == "paul" goto paul
  34. :vs drop -----------------------------------------------------------------
  35. if not exist \\cpvsbuild\drops\v7.0\raw\%buildnum%\build_complete.sem (
  36. dir /w /ad \\cpvsbuild\drops\v7.0\raw
  37. echo.
  38. echo Build %buildnum% does not exist.
  39. goto end
  40. )
  41. if "%platform%" == "x86" goto vscopy
  42. if "%platform%" == "ia64" goto vscopy
  43. if not exist \\jcox04\x86_64\%buildnum%\. (
  44. dir /w /ad \\jcox04\x86_64
  45. echo.
  46. echo Build %buildnum% does not exist for AMD64.
  47. goto end
  48. )
  49. :vscopy
  50. echo copying bits from VS build %buildnum%...
  51. set DIASDKPATH=\\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk
  52. if not "%platform%" == "" goto %platform%
  53. :x86
  54. echo.
  55. echo x86
  56. cd %_ntdrive%\%srcdir%\imagehlp\i386
  57. sd edit diaguids.lib
  58. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk\lib\diaguids.lib
  59. sd edit diaguidsd.lib
  60. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\sdk\diasdk\lib\diaguidsd.lib
  61. sd edit msdia20-msvcrt.lib
  62. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msdia20-msvcrt.lib
  63. sd edit msdia20d-msvcrt.lib
  64. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msdia20d-msvcrt.lib
  65. sd edit msobj10-msvcrt.lib
  66. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msobj10-msvcrt.lib
  67. sd edit msobj10d-msvcrt.lib
  68. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\msobj10d-msvcrt.lib
  69. sd edit mspdb70-msvcrt.lib
  70. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\mspdb70-msvcrt.lib
  71. sd edit mspdb70d-msvcrt.lib
  72. copy \\cpvsbuild\drops\v7.0\raw\%buildnum%\vsbuilt\vc7\lib\nonship\mspdb70d-msvcrt.lib
  73. if not "%platform%" == "" goto header
  74. :ia64
  75. echo.
  76. echo ia64
  77. cd %_ntdrive%\%srcdir%\imagehlp\ia64
  78. sd edit diaguids.lib
  79. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguids.lib
  80. sd edit diaguidsd.lib
  81. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguidsd.lib
  82. sd edit msdia20-msvcrt.lib
  83. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msdia20-msvcrt.lib
  84. sd edit msdia20d-msvcrt.lib
  85. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msdia20d-msvcrt.lib
  86. sd edit msobj10-msvcrt.lib
  87. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msobj10-msvcrt.lib
  88. sd edit msobj10d-msvcrt.lib
  89. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\msobj10d-msvcrt.lib
  90. sd edit mspdb70-msvcrt.lib
  91. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\mspdb70-msvcrt.lib
  92. sd edit mspdb70d-msvcrt.lib
  93. copy \\cpvsbuild\drops\v7.0_64\raw\%buildnum%\vsbuilt64\vc7\lib\ia64\nonship\mspdb70d-msvcrt.lib
  94. if not "%platform%" == "" goto header
  95. :amd64
  96. echo.
  97. echo amd64
  98. cd %_ntdrive%\%srcdir%\imagehlp\amd64
  99. sd edit diaguids.lib
  100. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguids.lib
  101. sd edit diaguidsd.lib
  102. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\sdk\diasdk\lib\diaguidsd.lib
  103. sd edit msdia20-msvcrt.lib
  104. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msdia20-msvcrt.lib
  105. sd edit msdia20d-msvcrt.lib
  106. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msdia20d-msvcrt.lib
  107. sd edit msobj10-msvcrt.lib
  108. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msobj10-msvcrt.lib
  109. sd edit msobj10d-msvcrt.lib
  110. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\msobj10d-msvcrt.lib
  111. sd edit mspdb70-msvcrt.lib
  112. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\mspdb70-msvcrt.lib
  113. sd edit mspdb70d-msvcrt.lib
  114. copy \\jcox04\x86_64\%buildnum%\vsbuilt64\vc7\lib\amd64\nonship\mspdb70d-msvcrt.lib
  115. goto header
  116. :paul --------------------------------------------------------------------
  117. echo copying bits from Paul...
  118. set DIASDKPATH=\\paulmay0\public\dia2\nt
  119. if not "%platform%" == "" goto paul_%platform%
  120. :paul_x86
  121. echo.
  122. echo x86
  123. cd %_ntdrive%\%srcdir%\imagehlp\i386
  124. sd edit diaguids.lib
  125. copy \\paulmay0\public\dia2\nt\x86\lib\diaguids.lib
  126. sd edit diaguidsd.lib
  127. copy \\paulmay0\public\dia2\nt\x86\lib\diaguidsd.lib
  128. sd edit msdia20-msvcrt.lib
  129. copy \\paulmay0\public\dia2\nt\x86\lib\msdia20-msvcrt.lib
  130. sd edit msdia20d-msvcrt.lib
  131. copy \\paulmay0\public\dia2\nt\x86\lib\msdia20d-msvcrt.lib
  132. sd edit msobj10-msvcrt.lib
  133. copy \\paulmay0\public\dia2\nt\x86\lib\msobj10-msvcrt.lib
  134. sd edit msobj10d-msvcrt.lib
  135. copy \\paulmay0\public\dia2\nt\x86\lib\msobj10d-msvcrt.lib
  136. sd edit mspdb70-msvcrt.lib
  137. copy \\paulmay0\public\dia2\nt\x86\lib\mspdb70-msvcrt.lib
  138. sd edit mspdb70d-msvcrt.lib
  139. copy \\paulmay0\public\dia2\nt\x86\lib\mspdb70d-msvcrt.lib
  140. if not "%platform%" == "" goto header
  141. :paul_ia64
  142. echo.
  143. echo ia64
  144. cd %_ntdrive%\%srcdir%\imagehlp\ia64
  145. sd edit diaguids.lib
  146. copy \\paulmay0\public\dia2\nt\ia64\lib\diaguids.lib
  147. sd edit diaguidsd.lib
  148. copy \\paulmay0\public\dia2\nt\ia64\lib\diaguidsd.lib
  149. sd edit msdia20-msvcrt.lib
  150. copy \\paulmay0\public\dia2\nt\ia64\lib\msdia20-msvcrt.lib
  151. sd edit msdia20d-msvcrt.lib
  152. copy \\paulmay0\public\dia2\nt\ia64\lib\msdia20d-msvcrt.lib
  153. sd edit msobj10-msvcrt.lib
  154. copy \\paulmay0\public\dia2\nt\ia64\lib\msobj10-msvcrt.lib
  155. sd edit msobj10d-msvcrt.lib
  156. copy \\paulmay0\public\dia2\nt\ia64\lib\msobj10d-msvcrt.lib
  157. sd edit mspdb70-msvcrt.lib
  158. copy \\paulmay0\public\dia2\nt\ia64\lib\mspdb70-msvcrt.lib
  159. sd edit mspdb70d-msvcrt.lib
  160. copy \\paulmay0\public\dia2\nt\ia64\lib\mspdb70d-msvcrt.lib
  161. if not "%platform%" == "" goto header
  162. :paul_amd64
  163. echo.
  164. echo amd64
  165. cd %_ntdrive%\%srcdir%\imagehlp\amd64
  166. sd edit diaguids.lib
  167. copy \\paulmay0\public\dia2\nt\amd64\lib\diaguids.lib
  168. sd edit diaguidsd.lib
  169. copy \\paulmay0\public\dia2\nt\amd64\lib\diaguidsd.lib
  170. sd edit msdia20-msvcrt.lib
  171. copy \\paulmay0\public\dia2\nt\amd64\lib\msdia20-msvcrt.lib
  172. sd edit msdia20d-msvcrt.lib
  173. copy \\paulmay0\public\dia2\nt\amd64\lib\msdia20d-msvcrt.lib
  174. sd edit msobj10-msvcrt.lib
  175. copy \\paulmay0\public\dia2\nt\amd64\lib\msobj10-msvcrt.lib
  176. sd edit msobj10d-msvcrt.lib
  177. copy \\paulmay0\public\dia2\nt\amd64\lib\msobj10d-msvcrt.lib
  178. sd edit mspdb70-msvcrt.lib
  179. copy \\paulmay0\public\dia2\nt\amd64\lib\mspdb70-msvcrt.lib
  180. sd edit mspdb70d-msvcrt.lib
  181. copy \\paulmay0\public\dia2\nt\amd64\lib\mspdb70d-msvcrt.lib
  182. :header ------------------------------------------------------------------
  183. echo headers
  184. cd %_ntdrive%\%srcdir%\imagehlp\vc
  185. sd edit dia2.h
  186. copy %DIASDKPATH%\include\dia2.h
  187. REM *** Following include and doc files are not currently dropped
  188. sd edit diacreate_int.h
  189. copy \\paulmay0\public\dia2\nt\include\diacreate_int.h
  190. rem sd edit diasdk.chm
  191. rem copy \\paulmay0\public\dia2\doc\diasdk.chm
  192. sd edit cvinfo.h
  193. copy \\paulmay0\public\dia2\nt\include\cvinfo.h
  194. cd %_ntdrive%\%srcdir%\dbg-common
  195. sd edit cvconst.h
  196. copy %DIASDKPATH%\include\cvconst.h
  197. :end ---------------------------------------------------------------------
  198. popd