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.

213 lines
6.2 KiB

  1. @echo off
  2. REM
  3. REM update.cmd
  4. REM
  5. REM Author: Murali R. Krishnan
  6. REM Date: 20-March-1996
  7. REM
  8. REM Usage:
  9. REM update
  10. REM
  11. REM Comment:
  12. REM This script updates the local copy of K2 sources
  13. REM from various places in the old slm tree of Gibraltar
  14. REM
  15. REM Useful for migrating source code from Gib to K2.
  16. REM
  17. set GIB_SRC=\\kernel\razzle3\src\internet
  18. set K2_DST=x:\nt\private\iis
  19. REM ------------------------------------------------------------
  20. REM Update root level files
  21. REM ------------------------------------------------------------
  22. for %%f in (.cmd .mk .pl dirs makefile .chi .inc) do xcopy /d %GIB_SRC%\*%%f %K2_DST%
  23. REM ------------------------------------------------------------
  24. REM Update include files
  25. REM Both inc & svcs\inc land up in the single inc\ directory
  26. REM ------------------------------------------------------------
  27. mkdir %K2_DST%\inc
  28. for %%f in ( urlutil.h smalprox.h spxinfo.h chat.h dirlist.h ftpd.h inetcom.h inetinfo.h inetsec.h nntps.h pop3s.h smtps.h svcloc.h w3svc.h) do xcopy /d %GIB_SRC%\inc\%%f %K2_DST%\inc
  29. xcopy /d %GIB_SRC%\svcs\inc %K2_DST%\inc
  30. REM ------------------------------------------------------------
  31. REM Internet Services Common Stuff
  32. REM ------------------------------------------------------------
  33. mkdir %K2_DST%\svcs
  34. REM -----------------------
  35. REM Infocomm.dll
  36. REM -----------------------
  37. xcopy /dis %GIB_SRC%\svcs\odbc %K2_DST%\svcs\odbc
  38. set SUBDIR=svcs\infocomm
  39. mkdir %K2_DST%\%SUBDIR%
  40. for %%f in ( common info dbgext festrcnv tsstr) do (xcopy /dis %GIB_SRC%\svcs\dll\%%f %K2_DST%\%SUBDIR%\%%f)
  41. xcopy /di %GIB_SRC%\svcs\dll\dirs %K2_DST%\%SUBDIR%
  42. xcopy /dis %GIB_SRC%\svcs\dll\tsunami %K2_DST%\%SUBDIR%\cache
  43. xcopy /dis %GIB_SRC%\common\dirlist %K2_DST%\%SUBDIR%\dirlist
  44. xcopy /dis %GIB_SRC%\common\sec %K2_DST%\%SUBDIR%\sec
  45. REM -----------------------
  46. REM Service Location
  47. REM -----------------------
  48. set SUBDIR=svcs
  49. mkdir %K2_DST%\%SUBDIR%
  50. mkdir %K2_DST%\%SUBDIR%\infocomm
  51. xcopy /di %GIB_SRC%\common\inc %K2_DST%\%SUBDIR%\svcloc
  52. xcopy /dis %GIB_SRC%\common\util %K2_DST%\%SUBDIR%\svcloc
  53. xcopy /dis %GIB_SRC%\common\svcloc %K2_DST%\%SUBDIR%\svcloc
  54. REM -----------------------
  55. REM Inet Runtime Library
  56. REM -----------------------
  57. mkdir %K2_DST%\svcs\irtl
  58. xcopy /dis %GIB_SRC%\svcs\lib %K2_DST%\svcs\irtl
  59. REM ------------------------------------------------------------
  60. REM Specs & docs
  61. REM ------------------------------------------------------------
  62. xcopy /dis %GIB_SRC%\spec %K2_DST%\spec
  63. xcopy /dis %GIB_SRC%\docs %K2_DST%\docs
  64. REM ------------------------------------------------------------
  65. REM Performance Stuff
  66. REM ------------------------------------------------------------
  67. set SUBDIR=perf
  68. mkdir %K2_DST%\%SUBDIR%
  69. for %%f in ( distrib docs scripts) do (xcopy /dis %GIB_SRC%\%SUBDIR%\%%f %K2_DST%\%SUBDIR%\%%f)
  70. REM move the source code one level up...
  71. xcopy /dis %GIB_SRC%\%SUBDIR%\src\miweb %K2_DST%\%SUBDIR%\webcat
  72. xcopy /dis %GIB_SRC%\%SUBDIR%\src\drops %K2_DST%\%SUBDIR%\drops
  73. echo deleting %K2_SRC%\perf\webcat\rsa
  74. delnode /q %K2_SRC%\perf\webcat\rsa
  75. REM ------------------------------------------------------------
  76. REM InetInfo.exe
  77. REM ------------------------------------------------------------
  78. mkdir %K2_DST%\exe
  79. xcopy /dis %GIB_SRC%\svcs\exe\info %K2_DST%\exe
  80. REM ------------------------------------------------------------
  81. REM Update services tree
  82. REM ------------------------------------------------------------
  83. mkdir %K2_DST%\svcs
  84. REM -----------------------
  85. REM Mibs
  86. REM -----------------------
  87. set SUBDIR=svcs\mibs
  88. mkdir %K2_DST%\%SUBDIR%
  89. xcopy /ds %GIB_SRC%\%SUBDIR% %K2_DST%\%SUBDIR%
  90. REM -----------------------
  91. REM FTP Service
  92. REM -----------------------
  93. set SUBDIR=svcs\ftp
  94. mkdir %K2_DST%\%SUBDIR%
  95. xcopy /d %GIB_SRC%\%SUBDIR%\* %K2_DST%\%SUBDIR%
  96. for %%f in ( client mib perfmon server) do (xcopy /dis %GIB_SRC%\%SUBDIR%\%%f %K2_DST%\%SUBDIR%\%%f)
  97. xcopy /dis %GIB_SRC%\%SUBDIR%\stress2 %K2_DST%\%SUBDIR%\test
  98. REM -----------------------
  99. REM Gopher Service
  100. REM -----------------------
  101. set SUBDIR=svcs\gopher
  102. mkdir %K2_DST%\%SUBDIR%
  103. xcopy /d %GIB_SRC%\%SUBDIR%\* %K2_DST%\%SUBDIR%
  104. for %%f in ( client mib perfmon server gspace) do (xcopy /dis %GIB_SRC%\%SUBDIR%\%%f %K2_DST%\%SUBDIR%\%%f)
  105. xcopy /dis %GIB_SRC%\%SUBDIR%\inc %K2_DST%\%SUBDIR%\server
  106. xcopy /dis %GIB_SRC%\%SUBDIR%\stress %K2_DST%\%SUBDIR%\test
  107. REM -----------------------
  108. REM W3 Service
  109. REM -----------------------
  110. set SUBDIR=svcs\w3
  111. mkdir %K2_DST%\%SUBDIR%
  112. xcopy /d %GIB_SRC%\%SUBDIR%\* %K2_DST%\%SUBDIR%
  113. for %%f in ( client mib server cmdline filters gateways test) do (xcopy /dis %GIB_SRC%\%SUBDIR%\%%f %K2_DST%\%SUBDIR%\%%f)
  114. xcopy /dis %GIB_SRC%\%SUBDIR%\w3ctrs %K2_DST%\%SUBDIR%\perfmon
  115. xcopy /dis %GIB_SRC%\%SUBDIR%\w3dbg %K2_DST%\%SUBDIR%\debug
  116. REM ------------------------------------------------------------
  117. REM utils
  118. REM ------------------------------------------------------------
  119. mkdir %K2_DST%\utils
  120. xcopy /dis %GIB_SRC%\svcs\utils %K2_DST%\utils
  121. REM ------------------------------------------------------------
  122. REM security
  123. REM ------------------------------------------------------------
  124. mkdir %K2_DST%\svcs
  125. for %%f in ( pct ssl) do xcopy /dis %GIB_SRC%\%%f %K2_DST%\svcs\%%f
  126. REM ------------------------------------------------------------
  127. REM UI
  128. REM ------------------------------------------------------------
  129. mkdir %K2_DST%\ui
  130. for %%f in (catcfg catcpl comprop fscfg gscfg html inc internet) do (xcopy /dis %GIB_SRC%\ui\%%f %K2_DST%\ui\%%f)
  131. for %%f in (ipaddr ipadrdll isadmin itools mime msncfg scripts) do (xcopy /dis %GIB_SRC%\ui\%%f %K2_DST%\ui\%%f)
  132. for %%f in (setup template w3scfg) do (xcopy /dis %GIB_SRC%\ui\%%f %K2_DST%\ui\%%f)
  133. xcopy /di %GIB_SRC%\ui\* %K2_DST%\ui
  134. goto endOfBatch
  135. :cmdUsage
  136. echo Usage: update.cmd
  137. goto endOfBatch
  138. :endOfBatch
  139. echo. >> update.log
  140. echo ################################### >> update.log
  141. echo K2 sources synced up >> update.log
  142. date < nul >> update.log
  143. echo. >> update.log
  144. time < nul >> update.log
  145. echo. >> update.log
  146. echo ################################### >> update.log
  147. echo on