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.

144 lines
3.4 KiB

  1. @echo off
  2. REM
  3. REM mkwebcat.cmd
  4. REM
  5. REM Author: Murali R. Krishnan
  6. REM Date: 15-Feb-1996
  7. REM
  8. REM Usage:
  9. REM mkwebcat.cmd BuildNumber
  10. REM
  11. REM Comment:
  12. REM this command file generates the packed files for distribution
  13. REM The script assumes that the files are copied over using wcrel.cmd
  14. REM
  15. if (%1)==() goto cmdUsage
  16. net use y: /d
  17. if (%TEST_BUILD_SERVER%)==() net use y: \\whiteice\inetsrv
  18. if not (%TEST_BUILD_SERVER%)==() net use y: %TEST_BUILD_SERVER%
  19. pushd y:
  20. cd\
  21. set PR=%PROCESSOR_ARCHITECTURE%
  22. if (%PR%)==(x86) set PR=i386
  23. set __WEBCATTREE=%1\webcat
  24. REM ************************************************************
  25. REM Package the client
  26. REM ************************************************************
  27. :PackageClient
  28. pushd %__WEBCATTREE%\client
  29. if exist client.zip del client.zip
  30. if exist client.exe del client.exe
  31. pkzip -jr client beep.bat client.bat config.bat ..\%PR%\sleep.exe ..\%PR%\wcclient.exe ..\%PR%\sslc.dll
  32. zip2exe client
  33. copy client.exe ..\%PR%
  34. del client.zip
  35. popd
  36. REM ************************************************************
  37. REM Package the Controller
  38. REM ************************************************************
  39. :PackageController
  40. pushd %__WEBCATTREE%\ctrler
  41. REM scripts.zip ==> scripts.exe
  42. if exist scripts.exe del scripts.exe
  43. zip2exe scripts
  44. if exist ctrler.zip del ctrler.zip
  45. if exist ctrler.exe del ctrler.exe
  46. pkzip -jr ctrler run.cmd runall.cmd beep.bat config.cmd install.cmd ..\%PR%\pdh.dll ..\%PR%\wcctl.exe scripts.exe
  47. zip2exe ctrler
  48. copy ctrler.exe ..\%PR%
  49. del ctrler.zip
  50. popd
  51. REM ************************************************************
  52. REM Package the Server
  53. REM ************************************************************
  54. :PackageServer
  55. pushd %__WEBCATTREE%\server
  56. if exist server.zip del server.zip
  57. if exist server.exe del server.exe
  58. pkzip -jr server 256.txt deldirs.cmd gendirs.cmd genfiles.cmd genws.cmd install.cmd ..\%PR%\wscgi.exe ..\%PR%\wsisapi.dll
  59. zip2exe server
  60. copy server.exe ..\%PR%
  61. del server.zip
  62. popd
  63. REM ************************************************************
  64. REM Package the Source files
  65. REM ************************************************************
  66. :PackageSource
  67. pushd %__WEBCATTREE%\src
  68. if exist wcsrc.zip del wcsrc.zip
  69. if exist wcsrc.exe del wcsrc.exe
  70. pkzip -jr -P -r wcsrc readme.txt isapi\*.* cgi\*.* nsapi\*.*
  71. zip2exe wcsrc
  72. copy wcsrc.exe ..\%PR%
  73. del wcsrc.zip
  74. popd
  75. REM ************************************************************
  76. REM Package the webcat executables
  77. REM ************************************************************
  78. :PackageWebCAT
  79. pushd %__WEBCATTREE%\%PR%
  80. if exist webcat.zip del webcat.zip
  81. if exist webcat.exe del webcat.exe
  82. pkzip -jr webcat client.exe server.exe ctrler.exe wccvt.exe addline.exe
  83. zip2exe webcat
  84. del webcat.zip
  85. REM ************************************************************
  86. REM Package all the stuff
  87. REM ************************************************************
  88. if exist wcall.zip del wcall.zip
  89. if exist wcall.exe del wcall.exe
  90. pkzip -jr wcall wcsrc.exe webcat.exe ..\docs\wctech.doc ..\docs\wcguide.doc ..\docs\whitepap.doc
  91. zip2exe wcall
  92. del wcall.zip
  93. del client.exe ctrler.exe server.exe
  94. popd
  95. goto endOfBatch
  96. :cmdUsage
  97. echo Usage:
  98. echo mkwebcat BuildNumber
  99. goto endOfBatch
  100. :endOfBatch
  101. popd
  102. echo on