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.

183 lines
5.2 KiB

  1. @echo off
  2. REM
  3. REM wcrel.cmd -- copies of all the webcat related stuff
  4. REM
  5. setlocal
  6. REM
  7. REM CHECKED build if NTDEBUG defined, else FREE build.
  8. REM
  9. if (%TEST_BUILD_SERVER%)==() set __TARGETROOT=\\whiteice\inetsrv
  10. if not (%TEST_BUILD_SERVER%)==() set __TARGETROOT=%TEST_BUILD_SERVER%
  11. set __TARGET_SUBDIR=chk
  12. if "%NTDEBUG%"=="cvp" set __TARGETROOT=\\whiteice\inetsrv.chk
  13. REM
  14. REM determine what kind of processor
  15. REM
  16. if "%PROCESSOR_ARCHITECTURE%"=="x86" goto X86
  17. if "%PROCESSOR_ARCHITECTURE%"=="MIPS" goto MIPS
  18. if "%PROCESSOR_ARCHITECTURE%"=="PPC" goto PPC
  19. if "%PROCESSOR_ARCHITECTURE%"=="ALPHA" goto ALPHA
  20. echo PROCESSOR_ARCHITECTURE not defined.
  21. goto EXIT
  22. :X86
  23. set __TARGET_EXT=i386
  24. set __PROCESSOR_DIR=i386
  25. goto OK
  26. :MIPS
  27. set __TARGET_EXT=MIPS
  28. set __PROCESSOR_DIR=mips
  29. goto OK
  30. :PPC
  31. set __TARGET_EXT=PPC
  32. set __PROCESSOR_DIR=ppc
  33. goto OK
  34. :ALPHA
  35. set __TARGET_EXT=ALPHA
  36. set __PROCESSOR_DIR=alpha
  37. goto OK
  38. :OK
  39. REM
  40. REM check parameters and env vars
  41. REM
  42. if "%1"=="" echo usage: WCREL ^<version^> && goto EXIT
  43. if "%BINARIES%"=="" echo BINARIES not set && goto EXIT
  44. if not exist %BINARIES%\nt echo bad BINARIES directory && goto EXIT
  45. set __TARGET=%__TARGETROOT%\%1\webcat\%__TARGET_EXT%\
  46. rem
  47. rem Insure that we are not trashing an existing build.
  48. rem
  49. if exist %__TARGET%\wcver.bat if NOT "%2" == "/replace" goto IDIOT_CHECK
  50. REM
  51. REM create release directories
  52. REM
  53. md %__TARGETROOT%\%1
  54. md %__TARGETROOT%\%1\webcat
  55. md %__TARGETROOT%\%1\webcat\docs
  56. md %__TARGETROOT%\%1\webcat\client
  57. md %__TARGETROOT%\%1\webcat\ctrler
  58. md %__TARGETROOT%\%1\webcat\server
  59. md %__TARGETROOT%\%1\webcat\src
  60. md %__TARGETROOT%\%1\webcat\src\nsapi
  61. md %__TARGETROOT%\%1\webcat\src\isapi
  62. md %__TARGETROOT%\%1\webcat\src\cgi
  63. md %__TARGETROOT%\%1\webcat\%__TARGET_EXT%
  64. set __SYMBOLS=%__TARGETROOT%\%1\webcat\Symbols\%__TARGET_EXT%
  65. md %__TARGETROOT%\%1\webcat\Symbols
  66. md %__SYMBOLS%
  67. md %__SYMBOLS%\exe
  68. md %__SYMBOLS%\dll
  69. if not exist %__TARGET% echo bad TARGET directory %__TARGET% && goto EXIT
  70. echo copying to %__TARGET%
  71. set __INETDUMP=%BINARIES%\nt\iis\dump
  72. if (%INET_TREE%)==() set INET_TREE=\nt\private\iis
  73. set __INETPTREE=%INET_TREE%\perf
  74. set __WEBCATTREE=%__INETPTREE%\webcat
  75. set __WEBCATDST=%__TARGETROOT%\%1\webcat
  76. set __SYSTEM32=%BINARIES%\nt\system32
  77. set __SYMSRC=%BINARIES%\nt\iis\symbols
  78. REM
  79. REM copy binaries to the proper location
  80. REM
  81. copy %__INETDUMP%\wcctl.exe %__TARGET%
  82. copy %__INETDUMP%\wccvt.exe %__TARGET%
  83. copy %__INETDUMP%\addline.exe %__TARGET%
  84. copy %__INETDUMP%\wcclient.exe %__TARGET%
  85. copy %__INETDUMP%\wsisapi.dll %__TARGET%
  86. copy %__INETDUMP%\wscgi.exe %__TARGET%
  87. copy %__WEBCATTREE%\lib\%__PROCESSOR_DIR%\pdh.dll %__TARGET%
  88. copy %__WEBCATTREE%\lib\%__PROCESSOR_DIR%\sleep.exe %__TARGET%
  89. echo @echo Webcat Benchmark build %1 >> %__TARGET%\wcver.bat
  90. goto skip1
  91. copy %__SYMSRC%\dll\sslc.dbg %__SYMBOLS%\dll
  92. copy %__SYMSRC%\exe\wcclient.dbg %__SYMBOLS%\exe
  93. copy %__SYMSRC%\exe\wcctl.dbg %__SYMBOLS%\exe
  94. copy %__SYMSRC%\exe\wccvt.dbg %__SYMBOLS%\exe
  95. copy %__SYMSRC%\exe\addline.dbg %__SYMBOLS%\exe
  96. copy %__SYMSRC%\dll\wsisapi.dbg %__SYMBOLS%\dll
  97. copy %__SYMSRC%\exe\wscgi.dbg %__SYMBOLS%\exe
  98. :skip1
  99. if not (%PROCESSOR_ARCHITECTURE%)==(x86) goto NoCommonFileCopies
  100. REM
  101. REM copy docs to the proper location
  102. REM
  103. copy %__INETPTREE%\distrib\publish.cmd %__TARGET%
  104. copy %__INETPTREE%\docs\wctech.doc %__WEBCATDST%\docs
  105. copy %__INETPTREE%\docs\wcguide.doc %__WEBCATDST%\docs
  106. copy %__INETPTREE%\docs\whitepap.doc %__WEBCATDST%\docs
  107. copy %__INETPTREE%\docs\webcat.htm %__WEBCATDST%\docs
  108. REM
  109. REM copy source files to the proper location
  110. REM
  111. copy %__INETPTREE%\drops\webs1.1\readme.txt %__WEBCATDST%\src
  112. copy %__INETPTREE%\drops\webs1.1\wscgi.c %__WEBCATDST%\src\cgi
  113. copy %__INETPTREE%\drops\webs1.1\wsisapi.c %__WEBCATDST%\src\isapi
  114. copy %__INETPTREE%\drops\webs1.1\awsisapi.c %__WEBCATDST%\src\isapi
  115. copy %__INETPTREE%\drops\webs1.1\bwsisapi.c %__WEBCATDST%\src\isapi
  116. copy %__INETPTREE%\drops\webs1.1\cwsisapi.c %__WEBCATDST%\src\isapi
  117. copy %__INETPTREE%\drops\webs1.1\wsisapi.def %__WEBCATDST%\src\isapi
  118. copy %__INETPTREE%\drops\webs1.1\wsnsapi.c %__WEBCATDST%\src\nsapi
  119. copy %__INETPTREE%\drops\webs1.1\wsnsapi.mak %__WEBCATDST%\src\nsapi
  120. REM
  121. REM copy the scripts and command files for WebCat
  122. REM
  123. copy %__INETPTREE%\distrib\client %__WEBCATDST%\client
  124. copy %__INETPTREE%\distrib\ctrler %__WEBCATDST%\ctrler
  125. copy %__INETPTREE%\distrib\server %__WEBCATDST%\server
  126. :NoCommandFileCopies
  127. rem
  128. rem Tell the user how to bypass the bypass
  129. rem
  130. goto IDIOT_CHECK_FINI
  131. :IDIOT_CHECK
  132. @echo ----------------------------------------------------------------
  133. @echo WARNING: Version %1 is already present on %__TARGETROOT%
  134. @echo ----------------------------------------------------------------
  135. @echo If you really want to do this, then use: wcrel %1 /replace
  136. goto EXIT
  137. :IDIOT_CHECK_FINI
  138. :EXIT