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.

175 lines
4.9 KiB

  1. @REM WabDrop.BAT
  2. @REM
  3. @REM Copy a completed WAB build to a drop point.
  4. @REM
  5. @REM Syntax: WabDrop <4-digit build #> <destination> <root of inetpim source>
  6. @REM
  7. @REM Contact: Bruce Kelley ([email protected])
  8. @REM
  9. @REM
  10. @echo off
  11. setlocal
  12. if "%1"=="" goto error1
  13. if "%2"=="" goto error2
  14. if "%3"=="" goto error5
  15. setlocal
  16. set Drop=%2\drop%1
  17. set DropRetail=%drop%\retail
  18. set DropDebug=%drop%\debug
  19. set DropSdk=%drop%\sdk
  20. set DropApiTest=%DropSdk%\apitest
  21. set DropDoc=%DropSdk%\doc
  22. set DropH=%DropSdk%\h
  23. set DropLib=%DropSdk%\lib
  24. set Source=%3
  25. set Wab=%Source%\wab
  26. set WabH=%Wab%\common\h
  27. set Binaries=%3\binaries
  28. set BinRetail=%Binaries%\x86\retail
  29. set BinDebug=%Binaries%\x86\debug
  30. set WabApi=%Wab%\wabapi
  31. set WabExe=%wab%\wabexe
  32. set Wabmig=%wab%\convert\wabmig
  33. set WabFind=%wab%\wabfind
  34. set ApiTest=%Wab%\test\apitest
  35. set WabImp=%Wab%\convert\wmnets
  36. set ExtBin=%Wab%\external\bin
  37. set WabHelp=%Wab%\wabhelp
  38. set WabSetup=%Wab%\setup
  39. set WabRtl=%Source%\..\..\..\drop\retail
  40. set WabRtlSym=%Source%\..\..\..\drop\retail\symbols
  41. set SrcRtl=obj\i386
  42. set SrcDbg=objd\i386
  43. if exist %DropRetail%\wab32.dll goto error3
  44. @echo on
  45. md %Drop%
  46. md %DropRetail%
  47. @if not errorlevel==0 goto error4
  48. copy %WabRtl%\wab32.dll %DropRetail%
  49. copy %WabRtlSym%\dll\wab32.sym %DropRetail%
  50. copy %WabRtl%\wab.exe %DropRetail%
  51. copy %WabRtlSym%\exe\wab.sym %DropRetail%
  52. copy %WabRtl%\wabmig.exe %DropRetail%
  53. copy %WabRtlSym%\exe\wabmig.sym %DropRetail%
  54. copy %WabRtl%\wabimp.dll %DropRetail%
  55. copy %WabRtlSym%\dll\wabimp.sym %DropRetail%
  56. copy %WabRtl%\wabfind.dll %DropRetail%
  57. copy %WabRtlSym%\dll\wabfind.sym %DropRetail%
  58. copy %WabRtl%\inetcomm.dll %DropRetail%
  59. copy %WabRtlSym%\dll\inetcomm.sym %DropRetail%
  60. copy %ExtBin%\%SrcRtl%\wldap32.dll %DropRetail%
  61. copy %WabHelp%\wab.hlp %DropRetail%
  62. copy %WabHelp%\wab.cnt %DropRetail%
  63. copy %WabSetup%\wab.inf %DropRetail%
  64. md %DropDebug%
  65. @if not errorlevel==0 goto error4
  66. copy %WabApi%\%SrcDbg%\wab32.dll %DropDebug%
  67. copy %WabApi%\%SrcDbg%\wab32.sym %DropDebug%
  68. copy %WabExe%\%SrcDbg%\wab.exe %DropDebug%
  69. copy %WabExe%\%SrcDbg%\wab.sym %DropDebug%
  70. copy %WabMig%\%SrcDbg%\wabmig.exe %DropDebug%
  71. copy %WabMig%\%SrcDbg%\wabmig.sym %DropDebug%
  72. copy %WabImp%\%SrcDbg%\wabimp.dll %DropDebug%
  73. copy %WabImp%\%SrcDbg%\wabimp.sym %DropDebug%
  74. copy %WabFind%\%SrcDbg%\wabfind.dll %DropDebug%
  75. copy %WabFind%\%SrcDbg%\wabfind.sym %DropDebug%
  76. @rem Drop retail version of inetcomm
  77. copy %WabRtl%\inetcomm.dll %DropDebug%
  78. copy %WabRtlSym%\dll\inetcomm.sym %DropDebug%
  79. copy %ExtBin%\%SrcDbg%\wldap32.dll %DropDebug%
  80. copy %WabHelp%\wab.hlp %DropDebug%
  81. copy %WabHelp%\wab.cnt %DropDebug%
  82. copy %WabSetup%\wab.inf %DropDebug%
  83. md %DropSdk%
  84. @if not errorlevel==0 goto error4
  85. md %DropApiTest%
  86. @if not errorlevel==0 goto error4
  87. copy %ApiTest%\apitest.c %DropApiTest%
  88. copy %ApiTest%\apitest.def %DropApiTest%
  89. copy %ApiTest%\apitest.h %DropApiTest%
  90. copy %ApiTest%\apitest.rc %DropApiTest%
  91. copy %ApiTest%\dbgutil.c %DropApiTest%
  92. copy %ApiTest%\dbgutil.h %DropApiTest%
  93. copy %ApiTest%\instring.c %DropApiTest%
  94. copy %ApiTest%\instring.h %DropApiTest%
  95. copy %ApiTest%\instring.rc %DropApiTest%
  96. copy %ApiTest%\wabguid.c %DropApiTest%
  97. copy %ApiTest%\makefile %DropApiTest%
  98. md %DropDoc%
  99. @if not errorlevel==0 goto error4
  100. copy %Wab%\doc\wabapi.doc %DropDoc%
  101. md %DropH%
  102. @if not errorlevel==0 goto error4
  103. copy %WabH%\wab.h %DropH%
  104. copy %WabH%\wabapi.h %DropH%
  105. copy %WabH%\wabcode.h %DropH%
  106. copy %WabH%\wabdefs.h %DropH%
  107. copy %WabH%\wabiab.h %DropH%
  108. copy %WabH%\wabmem.h %DropH%
  109. copy %WabH%\wabnot.h %DropH%
  110. copy %WabH%\wabtags.h %DropH%
  111. copy %WabH%\wabutil.h %DropH%
  112. md %DropLib%
  113. @if not errorlevel==0 goto error4
  114. copy %Source%\..\..\..\public\sdk\lib\i386\wab32.lib %DropLib%
  115. goto end
  116. @REM Error handling
  117. :error1
  118. @Echo WABDROP ERROR: I need a build number as the first argument!
  119. @Echo Don't forget the leading zero!
  120. @Echo Sample: wabdrop 0101 f:\nashbuild\wab e:\trango\inet\inetpim
  121. @Echo Press any key to exit...
  122. @prompt
  123. goto end
  124. :error2
  125. @Echo WABDROP ERROR: I need a destination directory as the second argument!
  126. @Echo Sample: wabdrop 0101 f:\nashbuild\wab e:\trango\inet\inetpim
  127. @Echo Press any key to exit...
  128. @prompt
  129. goto end
  130. :error3
  131. @Echo WABDROP ERROR: Drop directory %drop% already has files in it!
  132. @Echo If this is REALLY the right directory, please clean out the
  133. @Echo directory before running this batch file.
  134. @Echo Press any key to exit...
  135. @prompt
  136. goto end
  137. :error 4
  138. @Echo WABDROP ERROR: Drop directory %drop% already has files in it or is not
  139. @Echo a valid directory! Is thiss REALLY the right directory? If so,
  140. @Echo please clean it out before running this batch file.
  141. @Echo Press any key to exit...
  142. @prompt
  143. goto end
  144. :error5
  145. @Echo WABDROP ERROR: I need a inetpim source directory as the third argument!
  146. @Echo Sample: wabdrop 0101 f:\nashbuild\wab e:\trango\inet\inetpim
  147. @Echo Press any key to exit...
  148. @prompt
  149. goto end
  150. :end
  151. @endlocal