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.

179 lines
4.7 KiB

  1. @echo off
  2. if "%1"=="build" set __action=build && goto :buildstubs
  3. if "%1"=="checkin" set __action=checkin && set __comment=%2 && goto :buildstubs
  4. if "%1"=="revert" set __action=revert && goto :buildstubs
  5. if "%1"=="verify" set __action=verify && goto :buildstubs
  6. echo "Usage: newstubs <build|checkin "comment"|revert>"
  7. goto :eof
  8. :buildstubs
  9. call :buildstub asycfilt
  10. call :buildstub cdonts
  11. call :buildstub cdosys
  12. call :buildstub corpol
  13. call :buildstub expsrv
  14. call :buildstub htmlhelp
  15. call :buildstub mqlogmgr
  16. call :buildstub msdasc
  17. call :buildstub msdbi60l
  18. call :buildstub msxml2
  19. call :buildstub msxs64
  20. call :buildstub nntpsnap
  21. call :buildstub oleaut32
  22. call :buildstub osptk
  23. call :buildstub scripto
  24. call :buildstub smtpsnap
  25. call :buildstub vbajet32
  26. goto :eof
  27. :asycfilt
  28. call :placefile com\OleAutomation\Binary_release\amd64 asycfilt.lib
  29. call :placefile com\OleAutomation\Binary_release\chk\amd64 asycfilt.dll
  30. call :placefile com\OleAutomation\Binary_release\chk\amd64 asycfilt.pdb
  31. call :placefile com\OleAutomation\Binary_release\fre\amd64 asycfilt.dll
  32. call :placefile com\OleAutomation\Binary_release\fre\amd64 asycfilt.pdb
  33. goto :eof
  34. :cdonts
  35. call :placefile enduser\ExchangeComponents\cdo\amd64 cdonts.dll
  36. call :placefile enduser\ExchangeComponents\cdo\amd64 cdonts.pdb
  37. goto :eof
  38. :cdosys
  39. call :placefile enduser\ExchangeComponents\cdo\amd64 cdosys.dll
  40. call :placefile enduser\ExchangeComponents\cdo\amd64 cdosys.pdb
  41. goto :eof
  42. :corpol
  43. call :placefile com\mts\Binary_release\amd64\free corpol.dll
  44. call :placefile com\mts\Binary_release\amd64\free corpol.pdb
  45. goto :eof
  46. :expsrv
  47. call :placefile enduser\DataBaseAccess\Binaries\amd64\dll expsrv.dll
  48. call :placefile enduser\DataBaseAccess\Binaries\amd64\dll expsrv.pdb
  49. goto :eof
  50. :htmlhelp
  51. call :placefile enduser\HelpEngines\htmlhelp\amd64 htmlhelp.lib
  52. goto :eof
  53. :mqlogmgr
  54. call :placefile inetsrv\msmq\binary_release\amd64\debug mqlogmgr.dll
  55. call :placefile inetsrv\msmq\binary_release\amd64\debug mqlogmgr.pdb
  56. goto :eof
  57. :msdasc
  58. call :placefile enduser\DataBaseAccess\Interfaces\lib\amd64 msdasc.lib
  59. goto :eof
  60. :msdbi60l
  61. call :placefile sdktools\debuggers\imagehlp\amd64 msdbi60l.lib
  62. goto :eof
  63. :msxml2
  64. call :placefile enduser\DataBaseAccess\Interfaces\lib\amd64 msxml2.lib
  65. goto :eof
  66. :msxs64
  67. call :placefile enduser\DataBaseAccess\Binaries\amd64\dll msxs64.dll
  68. call :placefile enduser\DataBaseAccess\Binaries\amd64\dll msxs64.pdb
  69. goto :eof
  70. :nntpsnap
  71. call :placefile inetsrv\iis\svcs\nntp\export\nntpsnap\amd64\dbg nntpsnap.dll
  72. call :placefile inetsrv\iis\svcs\nntp\export\nntpsnap\amd64\dbg nntpsnap.pdb
  73. call :placefile inetsrv\iis\svcs\nntp\export\nntpsnap\amd64\rtl nntpsnap.dll
  74. call :placefile inetsrv\iis\svcs\nntp\export\nntpsnap\amd64\rtl nntpsnap.pdb
  75. goto :eof
  76. :oleaut32
  77. call :placefile com\OleAutomation\Binary_release\chk\amd64 oleaut32.dll
  78. call :placefile com\OleAutomation\Binary_release\chk\amd64 oleaut32.pdb
  79. call :placefile com\OleAutomation\Binary_release\fre\amd64 oleaut32.dll
  80. call :placefile com\OleAutomation\Binary_release\fre\amd64 oleaut32.pdb
  81. call :placefile com\OleAutomation\Binary_release\amd64 oleaut32.lib
  82. goto :eof
  83. :osptk
  84. call :placefile enduser\DataBaseAccess\Interfaces\lib\amd64 osptk.lib
  85. goto :eof
  86. :scripto
  87. call :placefile enduser\ExchangeComponents\cdo\amd64 scripto.dll
  88. call :placefile enduser\ExchangeComponents\cdo\amd64 scripto.pdb
  89. goto :eof
  90. :smtpsnap
  91. call :placefile inetsrv\iis\svcs\smtp\export\smtpsnap\amd64\dbg smtpsnap.dll
  92. call :placefile inetsrv\iis\svcs\smtp\export\smtpsnap\amd64\dbg smtpsnap.pdb
  93. call :placefile inetsrv\iis\svcs\smtp\export\smtpsnap\amd64\rtl smtpsnap.dll
  94. call :placefile inetsrv\iis\svcs\smtp\export\smtpsnap\amd64\rtl smtpsnap.pdb
  95. goto :eof
  96. :vbajet32
  97. call :placefile enduser\DataBaseAccess\Binaries\amd64\dll vbajet32.dll
  98. goto :eof
  99. rem
  100. rem buildstub(
  101. rem IN stubdir)
  102. rem
  103. :buildstub
  104. pushd %1
  105. call :buildstub_%__action% %1
  106. popd
  107. goto :eof
  108. :buildstub_build
  109. build -cZ
  110. call :%1
  111. goto :eof
  112. :buildstub_checkin
  113. :buildstub_revert
  114. :buildstub_verify
  115. call :%1
  116. goto :eof
  117. rem
  118. rem placefil(
  119. rem IN destinationpath,
  120. rem IN filename)
  121. rem
  122. :placefile
  123. call :placefile_canonical %1 %2 obj\amd64\%2
  124. goto :eof
  125. :placefile_canonical
  126. set _src=%~f3
  127. set _dst=%sdxroot%\%1\%2
  128. pushd %sdxroot%\%1
  129. call :placefile_canonical_%__action% %_src% %_dst%
  130. popd
  131. goto :eof
  132. :placefile_canonical_build
  133. echo %1 - %2
  134. sd edit %2
  135. copy %1 %2
  136. goto :eof
  137. :placefile_canonical_checkin
  138. sd submit -C "%__comment%" %2
  139. goto :eof
  140. :placefile_canonical_revert
  141. sd revert %2
  142. goto :eof
  143. :placefile_canonical_verify
  144. if "%~z1" GEQ "%~z2" goto :eof
  145. echo Check stub: %1 (%~z1) %2 (%~z2)
  146. goto :eof