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.

1087 lines
38 KiB

  1. @REM -----------------------------------------------------------------
  2. @REM
  3. @REM inetsrv.cmd - CAchille, AaronL
  4. @REM Generate the IIS cabs
  5. @REM
  6. @REM Copyright (c) Microsoft Corporation. All rights reserved.
  7. @REM
  8. @REM -----------------------------------------------------------------
  9. @if defined _CPCMAGIC goto CPCBegin
  10. @perl -x "%~f0" %*
  11. @goto :EOF
  12. #!perl
  13. use strict;
  14. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  15. use lib $ENV{RAZZLETOOLPATH};
  16. use PbuildEnv;
  17. use ParseArgs;
  18. sub Usage { print<<USAGE; exit(1) }
  19. inetsrv [-l <language>]
  20. Generate the IIS cab files
  21. USAGE
  22. parseargs('?' => \&Usage);
  23. # *** TEMPLATE CODE ***
  24. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  25. __END__
  26. @:CPCBegin
  27. @set _CPCMAGIC=
  28. @setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  29. @if not defined DEBUG echo off
  30. @REM *** CMD SCRIPT BELOW ***
  31. :Begin_IIS_MAKE_CAB
  32. set CABDIR=%_NTPostBld%\inetsrv\dump\681984000
  33. Set NewDir=%_NTPostBld%\inetsrv\dump\Binaries.IIS
  34. REM ------------------------------------
  35. REM START IIS POSTBUILD PROCESSING
  36. REM ------------------------------------
  37. REM
  38. REM
  39. REM This .cmd file will
  40. REM
  41. REM 1. produce these files:
  42. REM \binaries\srvinf\iis.inf (iis_s.inf)
  43. REM \binaries\entinf\iis.inf (iis_e.inf)
  44. REM \binaries\dtcinf\iis.inf (iis_d.inf)
  45. REM \binaries\iis.inf (iis_w.inf)
  46. REM \binaries\perinf\iis.inf (iis_p.inf)
  47. REM \binaries\blainf\iis.inf (iis_b.inf)
  48. REM \binaries\sbsinf\iis.inf (iis_sbs.inf)
  49. REM \binaries\IIS6.cab
  50. REM ------------------------------------
  51. call logmsg.cmd "iis:start iis postbuild..."
  52. REM clean out iis cab file to be regenerated on full build
  53. if exist %_NTPOSTBLD%\build_logs\FullPass.txt (
  54. call ExecuteCmd.cmd "if exist %_NTPostBld%\iis6.cab del %_NTPostBld%\iis6.cab /s/q"
  55. )
  56. REM clean out iis cab file to be regenerated on intl builds
  57. if /i "%lang%" NEQ "usa" (
  58. call ExecuteCmd.cmd "if exist %_NTPostBld%\iis6.cab del %_NTPostBld%\iis6.cab /s/q"
  59. )
  60. REM We should be in the %_NTPostBld%\inetsrv\dump directory
  61. if /i EXIST %_NTPostBld%\inetsrv\dump (cd /d %_NTPostBld%\inetsrv\dump)
  62. if NOT EXIST %_NTPostBld%\inetsrv\dump (
  63. call errmsg.cmd "%_NTPostBld%\inetsrv\dump was not created. ABORTING"
  64. GOTO :THE_END_OF_IIS_POSTBUILD
  65. )
  66. REM make sure we don't try to run an old version that might have been in this dir
  67. if exist infutil2.exe (del infutil2.exe)
  68. if exist FList.exe (del flist.exe)
  69. REM remove old temp dir.
  70. if exist %NewDir% (rd /s /q %NewDir%)
  71. if exist %NewDir% (
  72. call errmsg.cmd "Unable to remove directory:%NewDir%"
  73. GOTO :THE_END_OF_IIS_POSTBUILD
  74. )
  75. Set TempFileName=infutil.csv
  76. if NOT EXIST %TempFileName% (
  77. call errmsg.cmd "%_NTPostBld%\inetsrv\dump\%TempFileName% Does not exist (Problem could be the infutil.csv was not built). ABORTING"
  78. GOTO :THE_END_OF_IIS_POSTBUILD
  79. )
  80. if not exist empty.txt (
  81. call errmsg.cmd "WARNING:empty.txt Does not exist (creating an empty.txt)"
  82. echo . > empty.txt
  83. )
  84. REM Do some extra stuff to ensure that
  85. REM These *.h files are copied to *.h2
  86. del *.h2
  87. call ExecuteCmd.cmd "copy ..\*.h ..\..\*.h2"
  88. REM Do ensure that some case sensitive files are case sensitive
  89. REM only needed for iis5.1 (winxp pro) but was removed from iis6.0 (winxp srv)
  90. REM call :RenameCaseSensitiveFiles
  91. REM --------------------------------------
  92. REM DO FUNKY PROCESSING FOR THE DOCUMENTATION FOLDERS SINCE
  93. REM WE DON'T WANT TO STORE DUPLICATE FILES IN THE CABS
  94. REM
  95. REM 1. nts\ismcore\core\*.* and ntw\ismcore\core\*.*
  96. REM contain many files which are duplicated between them
  97. REM so this next bunch of batch file commands will do this:
  98. REM a. take the common files and stick them into a ismshare\shared
  99. REM b. take the unique to nts files and stick them some ismshare\ntsonly\*.*
  100. REM c. take the unique to ntw files and stick them some ismshare\ntwonly\*.*
  101. REM 2. infutil.csv references these newely created dirs, so they better have the stuff in them!
  102. REM --------------------------------------
  103. call logmsg.cmd "merge files:merge duplicate files into a shared dir..."
  104. if exist ..\help\ismshare (rd /s /q ..\help\ismshare)
  105. compdir /o /b ..\help\nts\ismcore\core ..\help\ntw\ismcore\core > Shared.txt
  106. REM remove paths from list
  107. flist.exe -c Shared.txt > Shared_c.txt
  108. IF ERRORLEVEL 1 (
  109. set errors=%errorlevel%
  110. call errmsg.cmd "1:flist.exe failed."
  111. GOTO :THE_END_OF_IIS_POSTBUILD
  112. )
  113. del Shared.txt
  114. compdir /o /b ..\help\nts\ismcore\misc ..\help\ntw\ismcore\misc > Shared2.txt
  115. REM remove paths from list
  116. flist -c Shared2.txt > Shared_m.txt
  117. IF ERRORLEVEL 1 (
  118. set errors=%errorlevel%
  119. call errmsg.cmd "2:flist.exe failed."
  120. GOTO :THE_END_OF_IIS_POSTBUILD
  121. )
  122. del Shared2.txt
  123. REM ----------------------
  124. REM get only the nts stuff
  125. REM ----------------------
  126. call logmsg.cmd "merge files:get nts only list..."
  127. REM DO IT FOR THE CORE DIR
  128. dir /b ..\help\nts\ismcore\core > nts_allc.txt
  129. REM remove paths from list
  130. flist -c nts_allc.txt > nts_c.txt
  131. IF ERRORLEVEL 1 (
  132. set errors=%errorlevel%
  133. call errmsg.cmd "3:flist.exe failed."
  134. GOTO :THE_END_OF_IIS_POSTBUILD
  135. )
  136. del nts_allc.txt
  137. REM get only the nts stuff
  138. REM which are really the diff between all nts and the shared.
  139. flist -b nts_c.txt Shared_c.txt > NTSonlyc.txt
  140. IF ERRORLEVEL 1 (
  141. set errors=%errorlevel%
  142. call errmsg.cmd "4:flist.exe failed."
  143. GOTO :THE_END_OF_IIS_POSTBUILD
  144. )
  145. del nts_c.txt
  146. REM DO IT FOR THE MISC DIR
  147. dir /b ..\help\nts\ismcore\misc > nts_allm.txt
  148. REM remove paths from list
  149. flist -c nts_allm.txt > nts_m.txt
  150. IF ERRORLEVEL 1 (
  151. set errors=%errorlevel%
  152. call errmsg.cmd "5:flist.exe failed."
  153. GOTO :THE_END_OF_IIS_POSTBUILD
  154. )
  155. del nts_allm.txt
  156. REM get only the nts stuff
  157. REM which are really the diff between all nts and the shared.
  158. flist -b nts_m.txt Shared_m.txt > NTSonlym.txt
  159. IF ERRORLEVEL 1 (
  160. set errors=%errorlevel%
  161. call errmsg.cmd "6:flist.exe failed."
  162. GOTO :THE_END_OF_IIS_POSTBUILD
  163. )
  164. del nts_m.txt
  165. REM ----------------------
  166. REM get only the ntw stuff
  167. REM ----------------------
  168. call logmsg.cmd "merge files:get ntw only list..."
  169. REM DO IT FOR THE CORE DIR
  170. dir /b ..\help\ntw\ismcore\core > ntw_allc.txt
  171. REM remove paths
  172. flist -c ntw_allc.txt > ntw_c.txt
  173. IF ERRORLEVEL 1 (
  174. set errors=%errorlevel%
  175. call errmsg.cmd "7:flist.exe failed."
  176. GOTO :THE_END_OF_IIS_POSTBUILD
  177. )
  178. del ntw_allc.txt
  179. REM get only the ntw stuff
  180. REM which are really the diff between all ntw and the shared.
  181. flist -b ntw_c.txt Shared_c.txt > NTWonlyc.txt
  182. IF ERRORLEVEL 1 (
  183. set errors=%errorlevel%
  184. call errmsg.cmd "7:flist.exe failed."
  185. GOTO :THE_END_OF_IIS_POSTBUILD
  186. )
  187. del ntw_c.txt
  188. REM DO IT FOR THE MISC DIR
  189. dir /b ..\help\ntw\ismcore\misc > ntw_allm.txt
  190. REM remove paths
  191. flist -c ntw_allm.txt > ntw_m.txt
  192. IF ERRORLEVEL 1 (
  193. set errors=%errorlevel%
  194. call errmsg.cmd "7:flist.exe failed."
  195. GOTO :THE_END_OF_IIS_POSTBUILD
  196. )
  197. del ntw_allm.txt
  198. REM get only the ntw stuff
  199. REM which are really the diff between all ntw and the shared.
  200. flist -b ntw_m.txt Shared_m.txt > NTWonlym.txt
  201. IF ERRORLEVEL 1 (
  202. set errors=%errorlevel%
  203. call errmsg.cmd "7:flist.exe failed."
  204. GOTO :THE_END_OF_IIS_POSTBUILD
  205. )
  206. del ntw_m.txt
  207. REM
  208. REM Copy the files
  209. REM
  210. call logmsg.cmd "merge files:create shared list..."
  211. md ..\help\ismshare
  212. md ..\help\ismshare\core
  213. md ..\help\ismshare\core\shared
  214. md ..\help\ismshare\core\ntsonly
  215. md ..\help\ismshare\core\ntwonly
  216. md ..\help\ismshare\misc
  217. md ..\help\ismshare\misc\shared
  218. md ..\help\ismshare\misc\ntsonly
  219. md ..\help\ismshare\misc\ntwonly
  220. call logmsg.cmd "merge files:Shared_c.txt:copy ..\help\nts\ismcore\core\? ..\help\ismshare\core\shared"
  221. for /F %%i in (Shared_c.txt) do (
  222. copy ..\help\nts\ismcore\core\%%i ..\help\ismshare\core\shared
  223. )
  224. call logmsg.cmd "merge files:NTSonlyc.txt:copy ..\help\nts\ismcore\core\? ..\help\ismshare\core\ntsonly"
  225. for /F %%i in (NTSonlyc.txt) do (
  226. copy ..\help\nts\ismcore\core\%%i ..\help\ismshare\core\ntsonly
  227. )
  228. call logmsg.cmd "merge files:NTWonlyc.txt:copy ..\help\ntw\ismcore\core\? ..\help\ismshare\core\ntwonly"
  229. for /F %%i in (NTWonlyc.txt) do (
  230. copy ..\help\ntw\ismcore\core\%%i ..\help\ismshare\core\ntwonly
  231. )
  232. call logmsg.cmd "merge files:Shared_m.txt:copy ..\help\nts\ismcore\misc\? ..\help\ismshare\misc\shared"
  233. for /F %%i in (Shared_m.txt) do (
  234. copy ..\help\nts\ismcore\misc\%%i ..\help\ismshare\misc\shared
  235. )
  236. call logmsg.cmd "merge files:NTSonlym.txt:copy ..\help\nts\ismcore\misc\? ..\help\ismshare\misc\ntsonly"
  237. for /F %%i in (NTSonlym.txt) do (
  238. copy ..\help\nts\ismcore\misc\%%i ..\help\ismshare\misc\ntsonly
  239. )
  240. call logmsg.cmd "merge files:NTWonlym.txt:copy ..\help\ntw\ismcore\misc\? ..\help\ismshare\misc\ntwonly"
  241. for /F %%i in (NTWonlym.txt) do (
  242. copy ..\help\ntw\ismcore\misc\%%i ..\help\ismshare\misc\ntwonly
  243. )
  244. REM
  245. REM check if there there are any shared files at all...
  246. REM
  247. if exist ..\testdir (rd /s /q ..\testdir)
  248. md ..\testdir
  249. copy ..\help\ismshare\core\shared\*.* ..\testdir
  250. REM if it's empty then we'll get errorlevel=1, so if it's empty then create a dummy file
  251. IF ERRORLEVEL 1 (
  252. call logmsg.cmd "merge files:no core shared files. create dummy file ..\help\ismshare\core\shared\empty.txt"
  253. if exist empty.txt (copy empty.txt ..\help\ismshare\core\shared\empty.txt)
  254. )
  255. if exist ..\testdir (rd /s /q ..\testdir)
  256. md ..\testdir
  257. copy ..\help\ismshare\misc\shared\*.* ..\testdir
  258. IF ERRORLEVEL 1 (
  259. call logmsg.cmd "merge files:no misc shared files. create dummy file ..\help\ismshare\misc\shared\empty.txt"
  260. if exist empty.txt (copy empty.txt ..\help\ismshare\misc\shared\empty.txt)
  261. )
  262. if exist ..\testdir (rd /s /q ..\testdir )
  263. call logmsg.cmd "merge files:done."
  264. REM ----------------------------------------------------
  265. REM INCREMENTAL BUILD STUFF
  266. REM
  267. REM ----------------------------------------------------
  268. REM check if any of the files which will go into the .cab files have been updated.
  269. REM do this by getting a list of the files from infutil2 (which uses the infutil.csv list).
  270. REM then compare the date on every file in that list, if there is one which is newer than the
  271. REM cab files, then rebuild the cabs.
  272. REM ----------------------------------------------------
  273. REM
  274. REM Check if the incremental build stuff has been implemented yet.
  275. REM do this by checking the tool that it depends upon
  276. REM
  277. infutil2.exe -v
  278. IF ERRORLEVEL 3 (
  279. seterror.exe 0
  280. goto :CheckIncremental
  281. )
  282. REM
  283. REM if we got here, then we don't have the incremental build capability
  284. REM bummer, go and create the cabs.
  285. goto :CreateTheCABS
  286. :CheckIncremental
  287. call logmsg.cmd "incremental check:check if we need to rebuild the iis6.cab..."
  288. REM
  289. REM Check if there are any iis*.cab files?
  290. REM if there are none, then i guess we'd better recreate them!
  291. REM
  292. if NOT exist ..\..\IIS6.cab (
  293. call logmsg.cmd "incremental check:no existing iis6.cab file, create fresh iis6.cab file."
  294. goto :CreateTheCABS
  295. )
  296. REM
  297. REM Check if any specific files that we care about changed.
  298. REM
  299. call logmsg.cmd "incremental check:check if scripts,config changed...look in makecab.lst for list"
  300. if NOT exist makecab.lst (goto :CheckIncremental2)
  301. for /f %%a in (makecab.lst) do (
  302. infutil2.exe -4:%%a ..\..\IIS6.cab
  303. IF ERRORLEVEL 1 (call logmsg.cmd "incremental check:changed:%%a...rebuild cab" & goto :CreateTheCABS)
  304. )
  305. :CheckIncremental2
  306. if exist infutil2.cng (del infutil2.cng)
  307. if exist infutil2.cng2 (goto :UseListNum2)
  308. if exist infutil2.cng2 (del infutil2.cng2)
  309. set NeedToUpdate=0
  310. REM produce the infutil.cng file -- which has a list of files to watch for changes in.
  311. infutil2.exe -d -a infutil.csv NTS_x86 > infutil2.exe.cng.log
  312. REM create infutil.cng2 from .cng file (summary dir's to watch for changes in)
  313. flist.exe -d infutil2.cng > infutil2.cng2
  314. IF ERRORLEVEL 1 (
  315. set errors=%errorlevel%
  316. call errmsg.cmd "100:flist.exe failed."
  317. GOTO :THE_END_OF_IIS_POSTBUILD
  318. )
  319. :UseListNum2
  320. REM
  321. REM check if this is the same machine!
  322. REM if it's not the same machine, then we'll have to regenerate
  323. REM the .cabs and the .lst file (since the .lst file has hard coded d:\mydir1 stuff in it)
  324. REM
  325. call logmsg.cmd "incremental check:check if this is not the same machine..."
  326. echo %_NTTREE% > temp.drv
  327. if exist nt5iis.drv (goto :CheckDriveName)
  328. REM nt5iis.drv doesn't exist so continue on
  329. goto :CreateTheCABS
  330. :CheckDriveName
  331. for /f %%i in (nt5iis.drv) do (
  332. if /I "%%i" == "%_NTTREE%" (goto :CheckDriveNameAfter)
  333. )
  334. REM we got here meaning that the drive letter has changed!
  335. call logmsg.cmd "incremental check:drive letter changed. create the cab."
  336. goto :CreateTheCABS
  337. :CheckDriveNameAfter
  338. REM
  339. REM check if any of our content changed!
  340. REM
  341. call logmsg.cmd "incremental check:check if any of our content changed...look in infutil2.cng2 for list"
  342. seterror.exe 0
  343. for /f %%a in (infutil2.cng2) do (
  344. infutil2.exe -4:%%a ..\..\IIS6.cab
  345. IF ERRORLEVEL 1 (call logmsg.cmd "incremental check:changed:%%a...rebuild cab" & goto :CreateTheCABS)
  346. )
  347. REM
  348. REM skip creating the cabs since we don't need to...
  349. ECHO .
  350. ECHO . We are skipping IIS*.cab creation since
  351. ECHO . nothing has changed in the cab's content
  352. ECHO . and there is no reason to rebuild the cabs!
  353. ECHO .
  354. call logmsg.cmd "incremental check:nothing in the iis cab changed. no need to rebuild cab."
  355. call logmsg.cmd "incremental check:--- skipping iis cab creation ---"
  356. goto :CABSAreCreated
  357. :CreateTheCABS
  358. call logmsg.cmd "iis cab:--- create the cab ---"
  359. if exist infutil2.cat (del infutil2.cat)
  360. REM ====================================================================================
  361. REM <!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!>
  362. REM
  363. REM Call THE ALL IMPORTANT INFUTIL2.EXE WHICH WILL CREATE MORE FILES TO PROCESS.
  364. REM IF ANYTHING IS GOING TO FAIL, IT'S GOING TO FAIL RIGHT HERE.
  365. REM IF IT FAILS HERE, THAT MEANS THERE ARE PROBABLY SOME FILES IN THE INFUTIL2.INF FILE
  366. REM WHICH DO NOT EXIST IN THE BUILD. PERHAPSE LOCALIZERS DIDN'T PUT THEM THERE.
  367. REM
  368. REM <!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!><!>
  369. REM ====================================================================================
  370. call logmsg.cmd "iis cab:create files to produce cab..."
  371. infutil2.exe -tIIS -d infutil.csv NTS_x86 > infutil2.exe.log
  372. IF ERRORLEVEL 1 (
  373. set errors=%errorlevel%
  374. call errmsg.cmd "infutil2.exe failed. there are files missing from the build. check %_NTPOSTBLD%\inetsrv\dump\infutil2.exe.log"
  375. GOTO :THE_END_OF_IIS_POSTBUILD
  376. )
  377. REM
  378. REM move outputed files to the dump directory for safekeeping
  379. REM
  380. if exist missing.srv (del missing.srv)
  381. if exist infutil2.err (rename infutil2.err missing.srv)
  382. REM
  383. REM now how can we tell if this we thru?
  384. REM It should have produced infutil2.inf and infutil2.ddf
  385. REM
  386. Set TempFileName=infutil2.inf
  387. if NOT EXIST %TempFileName% (
  388. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  389. GOTO :THE_END_OF_IIS_POSTBUILD
  390. )
  391. Set TempFileName=infutil2.ddf
  392. if NOT EXIST %TempFileName% (
  393. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  394. GOTO :THE_END_OF_IIS_POSTBUILD
  395. )
  396. Set TempFileName=header.ddf
  397. if NOT EXIST %TempFileName% (
  398. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  399. GOTO :THE_END_OF_IIS_POSTBUILD
  400. )
  401. REM
  402. REM take the .ddf details and append it to the header.ddf file to produce NTS_x86.ddf
  403. REM
  404. call ExecuteCmd.cmd "copy header.ddf + infutil2.ddf NTS_x86.ddf"
  405. REM
  406. REM verify that the file actually was created
  407. REM
  408. Set TempFileName=NTS_x86.ddf
  409. if NOT EXIST %TempFileName% (
  410. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  411. GOTO :THE_END_OF_IIS_POSTBUILD
  412. )
  413. :CallDiamond
  414. REM ---------------------------
  415. REM
  416. REM Create the CAB files
  417. REM use the NTS_x86.ddf file!
  418. REM
  419. REM ---------------------------
  420. if exist %CABDIR% rd /s /q %CABDIR%
  421. if exist iislist.inf (del iislist.inf)
  422. REM
  423. REM makecab.exe should be in the path if it is not then we are hosed!
  424. REM
  425. call logmsg.cmd "iis cab:calling makecab.exe"
  426. start /min /wait makecab.exe -F NTS_x86.ddf
  427. call logmsg.cmd "iis cab:end makecab.exe"
  428. REM
  429. REM OKAY, NOW WE HAVE:
  430. REM iislist.inf (produced from makecab.exe)
  431. REM infutil2.inf (produced from infutil2.exe)
  432. REM
  433. Set TempFileName=iislist.inf
  434. if NOT EXIST %TempFileName% (
  435. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  436. call errmsg.cmd "Check if makecab.exe is in your path. it should be in idw or mstools."
  437. GOTO :THE_END_OF_IIS_POSTBUILD
  438. )
  439. Set TempFileName=infutil2.inf
  440. if NOT EXIST %TempFileName% (
  441. call errmsg.cmd "%TempFileName% Does not exist! Or your missing INFUTIL2.EXE FROM YOUR MSTOOLS DIR! Check your disk space.Check your disk space in %Temp% (your temp dir)."
  442. GOTO :THE_END_OF_IIS_POSTBUILD
  443. )
  444. REM
  445. REM copy over the appropriate iis*.inx file
  446. REM
  447. Set TempFileName=iistop.inx
  448. if NOT EXIST %TempFileName% (
  449. call errmsg.cmd "%TempFileName% Does not exist! maybe it wasn't built"
  450. GOTO :THE_END_OF_IIS_POSTBUILD
  451. )
  452. Set TempFileName=iisend.inx
  453. if NOT EXIST %TempFileName% (
  454. call errmsg.cmd "%TempFileName% Does not exist! maybe it wasn't built"
  455. GOTO :THE_END_OF_IIS_POSTBUILD
  456. )
  457. Set TempFileName=..\..\congeal_scripts\mednames.txt
  458. if NOT EXIST %TempFileName% (
  459. call errmsg.cmd "%TempFileName% Does not exist! maybe it wasn't built"
  460. GOTO :THE_END_OF_IIS_POSTBUILD
  461. )
  462. REM
  463. REM Check if ansi2uni.exe tool exists...
  464. REM
  465. REM convert ansi infutil2.inf and iislist.inf to unicode
  466. REM
  467. call logmsg.cmd "iis post cab:fixup iis*.inx files to be iis.inf files..."
  468. findstr /V /B "mkw3site.vbs mkwebsrv.js mkwebsrv.vbs" infutil2.inf > infutil2_pro.inf
  469. unitext -m -1252 infutil2.inf infutilu.inf
  470. unitext -m -1252 infutil2_pro.inf infutilu_pro.inf
  471. unitext -m -1252 iislist.inf iislistu.inf
  472. unitext -m -1252 ..\..\congeal_scripts\mednames.txt mednames_u.txt
  473. Set TempFileName=infutilu.inf
  474. if NOT EXIST %TempFileName% (
  475. call errmsg.cmd "%_NTPostBld%\inetsrv\dump\%TempFileName%. UNEXPECTED ERROR! ABORTING"
  476. GOTO :THE_END_OF_IIS_POSTBUILD
  477. )
  478. if exist infutilu.inf (del infutil2.inf && rename infutilu.inf infutil2.inf)
  479. if exist infutilu_pro.inf (del infutil2_pro.inf && rename infutilu_pro.inf infutil2_pro.inf)
  480. if exist iislistu.inf (del iislist.inf && rename iislistu.inf iislist.inf)
  481. REM
  482. REM Combine all of the files
  483. REM
  484. call ExecuteCmd.cmd "copy iistop.inx + mednames_u.txt + iisend.inx + infutil2.inf + iislist.inf iis.inx"
  485. call ExecuteCmd.cmd "copy iistop.inx + mednames_u.txt + iisend.inx + infutil2_pro.inf + iislist.inf iis_pro.inx"
  486. call ExecuteCmd.cmd "copy iistop.inx + mednames_u.txt + iisend.inx iis_noiis.inx"
  487. REM
  488. REM 1st Stage: Remove Product Specific Information
  489. REM
  490. call ExecuteCmd.cmd "prodfilt -u iis_noiis.inx iis_p.inx +p"
  491. call ExecuteCmd.cmd "prodfilt -u iis_pro.inx iis_w.inx +w"
  492. call ExecuteCmd.cmd "prodfilt -u iis.inx iis_s.inx +s"
  493. call ExecuteCmd.cmd "prodfilt -u iis.inx iis_e.inx +e"
  494. call ExecuteCmd.cmd "prodfilt -u iis.inx iis_d.inx +d"
  495. call ExecuteCmd.cmd "prodfilt -u iis.inx iis_b.inx +b"
  496. call ExecuteCmd.cmd "prodfilt -u iis.inx iis_sbs.inx +l"
  497. REM
  498. REM 2nd Stage: Remove Platform Specific Information
  499. REM
  500. if /i "%_BuildArch%"=="ia64" set PRODUCTFLAG=m&&goto GotArchitecture
  501. if /i "%_BuildArch%"=="amd64" set PRODUCTFLAG=a&&goto GotArchitecture
  502. if /i "%_BuildArch%"=="x86" set PRODUCTFLAG=i&&goto GotArchitecture
  503. call errmsg.cmd "Unknown architecture! ABORTING"
  504. GOTO :THE_END_OF_IIS_POSTBUILD
  505. :GotArchitecture
  506. call ExecuteCmd.cmd "prodfilt -u iis_p.inx iis_p.inf +%PRODUCTFLAG%"
  507. call ExecuteCmd.cmd "prodfilt -u iis_w.inx iis_w.inf +%PRODUCTFLAG%"
  508. call ExecuteCmd.cmd "prodfilt -u iis_s.inx iis_s.inf +%PRODUCTFLAG%"
  509. call ExecuteCmd.cmd "prodfilt -u iis_e.inx iis_e.inf +%PRODUCTFLAG%"
  510. call ExecuteCmd.cmd "prodfilt -u iis_d.inx iis_d.inf +%PRODUCTFLAG%"
  511. call ExecuteCmd.cmd "prodfilt -u iis_b.inx iis_b.inf +%PRODUCTFLAG%"
  512. call ExecuteCmd.cmd "prodfilt -u iis_sbs.inx iis_sbs.inf +%PRODUCTFLAG%"
  513. call ExecuteCmd.cmd "prodfilt hardcode.lst hardcode.parsed.lst +%PRODUCTFLAG%"
  514. rem
  515. rem check if our tool exists
  516. rem to clean up these iis_*.inf files
  517. rem and remove the control-z from the end of them
  518. rem
  519. uniutil.exe -v
  520. IF ERRORLEVEL 10 (
  521. seterror.exe 0
  522. goto :DoINFUnicodeClean
  523. )
  524. goto :INFUnicodeCleanFinished
  525. :DoINFUnicodeClean
  526. REM
  527. REM clean up the iis*.inf files to
  528. REM and get rid of the trailing control-z
  529. REM
  530. uniutil.exe -z iis_s.inf iis_s.inf2
  531. uniutil.exe -z iis_e.inf iis_e.inf2
  532. uniutil.exe -z iis_d.inf iis_d.inf2
  533. uniutil.exe -z iis_w.inf iis_w.inf2
  534. uniutil.exe -z iis_p.inf iis_p.inf2
  535. uniutil.exe -z iis_b.inf iis_b.inf2
  536. uniutil.exe -z iis_sbs.inf iis_sbs.inf2
  537. if exist iis_s.inf2 (del iis_s.inf && rename iis_s.inf2 iis_s.inf)
  538. if exist iis_e.inf2 (del iis_e.inf && rename iis_e.inf2 iis_e.inf)
  539. if exist iis_d.inf2 (del iis_d.inf && rename iis_d.inf2 iis_d.inf)
  540. if exist iis_w.inf2 (del iis_w.inf && rename iis_w.inf2 iis_w.inf)
  541. if exist iis_p.inf2 (del iis_p.inf && rename iis_p.inf2 iis_p.inf)
  542. if exist iis_b.inf2 (del iis_b.inf && rename iis_b.inf2 iis_b.inf)
  543. if exist iis_sbs.inf2 (del iis_sbs.inf && rename iis_sbs.inf2 iis_sbs.inf)
  544. :INFUnicodeCleanFinished
  545. REM
  546. REM Check if there is a infutil.NOT file
  547. REM this file is there because there is a file in the .inf
  548. REM which is not actually in the build (usually a binary file)
  549. REM usually this happens in localized builds for some reason.
  550. REM
  551. REM If there is, then tack that on to the end...
  552. if exist infutil2.NOT (
  553. goto :DoLocalizationBuildNotFile
  554. )
  555. goto :DoneLocalizationBuildNotFile
  556. :DoLocalizationBuildNotFile
  557. Set TempFileName=infutil2u.not
  558. if NOT EXIST %TempFileName% (
  559. call errmsg.cmd "%_NTPostBld%\inetsrv\dump\%TempFileName%. UNEXPECTED ERROR! ABORTING"
  560. GOTO :THE_END_OF_IIS_POSTBUILD
  561. )
  562. if exist infutil2u.not (del infutil2.not && rename infutil2u.not infutil2.not)
  563. call ExecuteCmd.cmd "copy iis_s.inf + infutil2.not iis_s.inf"
  564. call ExecuteCmd.cmd "copy iis_e.inf + infutil2.not iis_e.inf"
  565. call ExecuteCmd.cmd "copy iis_d.inf + infutil2.not iis_d.inf"
  566. call ExecuteCmd.cmd "copy iis_w.inf + infutil2.not iis_w.inf"
  567. call ExecuteCmd.cmd "copy iis_p.inf + infutil2.not iis_p.inf"
  568. call ExecuteCmd.cmd "copy iis_b.inf + infutil2.not iis_b.inf"
  569. call ExecuteCmd.cmd "copy iis_sbs.inf + infutil2.not iis_sbs.inf"
  570. rem
  571. rem check if our tool exists
  572. rem to clean up these iis_*.inf files
  573. rem and remove the control-z from the end of them
  574. rem
  575. uniutil.exe -v
  576. IF ERRORLEVEL 10 (
  577. seterror.exe 0
  578. goto :DoINFUnicodeClean2
  579. )
  580. goto :INFUnicodeCleanFinished2
  581. :DoINFUnicodeClean2
  582. REM
  583. REM clean up the iis*.inf files to
  584. REM and get rid of the trailing control-z
  585. REM
  586. uniutil.exe -z iis_s.inf iis_s.inf2
  587. uniutil.exe -z iis_e.inf iis_e.inf2
  588. uniutil.exe -z iis_d.inf iis_d.inf2
  589. uniutil.exe -z iis_w.inf iis_w.inf2
  590. uniutil.exe -z iis_p.inf iis_p.inf2
  591. uniutil.exe -z iis_b.inf iis_b.inf2
  592. uniutil.exe -z iis_sbs.inf iis_sbs.inf2
  593. if exist iis_s.inf2 (del iis_s.inf && rename iis_s.inf2 iis_s.inf)
  594. if exist iis_e.inf2 (del iis_e.inf && rename iis_e.inf2 iis_e.inf)
  595. if exist iis_d.inf2 (del iis_d.inf && rename iis_d.inf2 iis_d.inf)
  596. if exist iis_w.inf2 (del iis_w.inf && rename iis_w.inf2 iis_w.inf)
  597. if exist iis_p.inf2 (del iis_p.inf && rename iis_p.inf2 iis_p.inf)
  598. if exist iis_b.inf2 (del iis_b.inf && rename iis_b.inf2 iis_b.inf)
  599. if exist iis_sbs.inf2 (del iis_sbs.inf && rename iis_sbs.inf2 iis_sbs.inf)
  600. :INFUnicodeCleanFinished2
  601. :DoneLocalizationBuildNotFile
  602. REM
  603. REM if there is a infutil2.not file then
  604. REM we should warn the builders that there are somemissing files from build
  605. REM when this script was run.
  606. REM
  607. if exist infutil2.NOT (
  608. call logmsg.cmd "WARNING: Missing files in iis build. Check the %_NTPostBld%\inetsrv\dump\infutil2.NOT file for missing files."
  609. )
  610. REM
  611. REM Copy everything in to a %NewDir% directory
  612. REM
  613. if not exist %CABDIR% (
  614. call errmsg.cmd "SERIOUS ERROR Unable to find makecab.exe created dir %CABDIR%!!! Check to see if makecab.exe is in your path. Check your disk space."
  615. GOTO :THE_END_OF_IIS_POSTBUILD
  616. )
  617. call ExecuteCmd.cmd "md %NewDir%"
  618. cd /d %NewDir%
  619. REM ---------------------------------------------------
  620. REM COPY OVER THE iis_*.inf files!!!
  621. REM ---------------------------------------------------
  622. call ExecuteCmd.cmd "copy ..\iis_s.inf"
  623. call ExecuteCmd.cmd "copy ..\iis_e.inf"
  624. call ExecuteCmd.cmd "copy ..\iis_d.inf"
  625. call ExecuteCmd.cmd "copy ..\iis_w.inf"
  626. call ExecuteCmd.cmd "copy ..\iis_p.inf"
  627. call ExecuteCmd.cmd "copy ..\iis_b.inf"
  628. call ExecuteCmd.cmd "copy ..\iis_sbs.inf"
  629. REM ---------------------------------------------------
  630. REM COPY OVER THE NEWLY CREATED .CAB FILES FROM Makecab.exe
  631. REM into %NewDir%
  632. REM ---------------------------------------------------
  633. call logmsg.cmd "iis post cab:copy all %CABDIR% files int %NewDir%.. temporarily..."
  634. call ExecuteCmd.cmd "COPY %CABDIR%\*.*"
  635. REM ---------------------------------------------------
  636. REM After the CABS have been produced from the temporary directory (ismshare)
  637. REM we can delete the ismshare directory
  638. REM ---------------------------------------------------
  639. REM
  640. REM Do not delete it yet: it is needed to create nt5iis.cat!
  641. REM
  642. REM if exist ..\..\help\ismshare (rd /s /q ..\..\help\ismshare)
  643. cd ..
  644. REM
  645. REM Remove the makecab.exe created dir
  646. REM
  647. call logmsg.cmd "iis post cab:remove %CABDIR% dir..."
  648. if exist %CABDIR% (RD /S /Q %CABDIR%)
  649. IF ERRORLEVEL 1 (sleep 5)
  650. if exist %CABDIR% (RD /S /Q %CABDIR%)
  651. REM ====================================
  652. REM
  653. REM DO EXTRA STUFF
  654. REM
  655. REM copy these files to the retail dir:
  656. REM iis_s.inf <-- iis.inf file for server
  657. REM iis_e.inf <-- iis.inf file for enterprise
  658. REM iis_d.inf <-- iis.inf file for datacenter
  659. REM iis_w.inf <-- iis.inf file for workstation/pro
  660. REM iis_p.inf <-- iis.inf file for personal
  661. REM iis_b.inf <-- iis.inf file for web blade
  662. REM iis_sbs.inf <-- iis.inf file for small business server
  663. REM ====================================
  664. :ExtraStuffFor
  665. call logmsg.cmd "iis post cab:move new iis.infs to theyre SKU..."
  666. REM
  667. REM copy iis_s.inf
  668. REM
  669. if not exist ..\..\srvinf md ..\..\srvinf
  670. if exist %NewDir%\iis_s.inf copy %NewDir%\iis_s.inf ..\..\srvinf\iis.inf
  671. set TempFileName=..\..\srvinf\iis.inf
  672. if NOT EXIST %TempFileName% (
  673. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  674. GOTO :THE_END_OF_IIS_POSTBUILD
  675. )
  676. REM
  677. REM copy iis_e.inf
  678. REM
  679. if not exist ..\..\entinf md ..\..\entinf
  680. if exist %NewDir%\iis_e.inf copy %NewDir%\iis_e.inf ..\..\entinf\iis.inf
  681. set TempFileName=..\..\entinf\iis.inf
  682. if NOT EXIST %TempFileName% (
  683. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  684. GOTO :THE_END_OF_IIS_POSTBUILD
  685. )
  686. REM
  687. REM copy iis_d.inf
  688. REM
  689. if not exist ..\..\dtcinf md ..\..\dtcinf
  690. if exist %NewDir%\iis_d.inf copy %NewDir%\iis_d.inf ..\..\dtcinf\iis.inf
  691. set TempFileName=..\..\dtcinf\iis.inf
  692. if NOT EXIST %TempFileName% (
  693. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  694. GOTO :THE_END_OF_IIS_POSTBUILD
  695. )
  696. REM
  697. REM copy iis_b.inf
  698. REM
  699. if not exist ..\..\blainf md ..\..\blainf
  700. if exist %NewDir%\iis_b.inf copy %NewDir%\iis_b.inf ..\..\blainf\iis.inf
  701. set TempFileName=..\..\blainf\iis.inf
  702. if NOT EXIST %TempFileName% (
  703. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  704. GOTO :THE_END_OF_IIS_POSTBUILD
  705. )
  706. REM
  707. REM copy iis_sbs.inf
  708. REM
  709. if not exist ..\..\sbsinf md ..\..\sbsinf
  710. if exist %NewDir%\iis_sbs.inf copy %NewDir%\iis_sbs.inf ..\..\sbsinf\iis.inf
  711. set TempFileName=..\..\sbsinf\iis.inf
  712. if NOT EXIST %TempFileName% (
  713. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  714. GOTO :THE_END_OF_IIS_POSTBUILD
  715. )
  716. REM
  717. REM copy iis_p.inf
  718. REM
  719. if not exist ..\..\perinf md ..\..\perinf
  720. if exist %NewDir%\iis_p.inf copy %NewDir%\iis_p.inf ..\..\perinf\iis.inf
  721. set TempFileName=..\..\perinf\iis.inf
  722. if NOT EXIST %TempFileName% (
  723. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  724. GOTO :THE_END_OF_IIS_POSTBUILD
  725. )
  726. REM
  727. REM copy iis_w.inf
  728. REM
  729. if exist %NewDir%\iis_w.inf copy %NewDir%\iis_w.inf ..\..\iis.inf
  730. set TempFileName=..\..\iis.inf
  731. if NOT EXIST %TempFileName% (
  732. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  733. GOTO :THE_END_OF_IIS_POSTBUILD
  734. )
  735. REM
  736. REM copy the *.cab files! only
  737. REM
  738. call logmsg.cmd "iis post cab:copy iis cab file to %_NTPostBld%\IIS6.cab"
  739. if exist %NewDir%\IIS6.cab (
  740. call ExecuteCmd.cmd "copy %NewDir%\IIS6.cab ..\..\IIS6.cab"
  741. )
  742. set TempFileName=..\..\IIS6.cab
  743. if NOT EXIST %TempFileName% (
  744. call errmsg.cmd "SERIOUS ERROR:%TempFileName% does not exist!. Check your disk space."
  745. GOTO :THE_END_OF_IIS_POSTBUILD
  746. )
  747. REM
  748. REM add to the .cat file someother entries.
  749. REM
  750. call logmsg.cmd "iis post cab:append more info for the nt5iis.lst file..."
  751. cd ..\..
  752. if exist inetsrv\dump\it.tmp (del inetsrv\dump\it.tmp)
  753. if exist inetsrv\dump\it.1 (del inetsrv\dump\it.1)
  754. if exist inetsrv\dump\it.2 (del inetsrv\dump\it.2)
  755. if exist inetsrv\dump\it.3 (del inetsrv\dump\it.3)
  756. if exist inetsrv\dump\it.4 (del inetsrv\dump\it.4)
  757. if exist inetsrv\dump\it.all (del inetsrv\dump\it.all)
  758. for %%i in (IIS6.cab) do (@echo ^<HASH^>%%~fi=%%~fi > inetsrv\dump\it.tmp)
  759. copy inetsrv\dump\it.tmp inetsrv\dump\it.1
  760. del inetsrv\dump\it.tmp
  761. for /f %%i in (inetsrv\dump\hardcode.parsed.lst) do (@echo ^<HASH^>%%~fi=%%~fi >> inetsrv\dump\it.tmp)
  762. copy inetsrv\dump\it.tmp inetsrv\dump\it.2
  763. REM
  764. cd inetsrv\dump
  765. call ExecuteCmd.cmd "copy it.1 + it.2 + it.3 + it.4 it.all"
  766. REM
  767. REM append the it.all resulting file to infutil2.cat
  768. REM
  769. if exist nt5iis.lst (del nt5iis.lst)
  770. call logmsg.cmd "iis post cab:create the final nt5iis.lst file which will become NT5IIS.CAT..."
  771. call ExecuteCmd.cmd "copy infutil2.cat + it.all nt5iis.lst"
  772. REM update a file with the drive contained in nt5iis.lst
  773. echo %_NTTREE% > nt5iis.drv
  774. if exist it.tmp (del it.tmp)
  775. if exist it.1 (del it.1)
  776. if exist it.2 (del it.2)
  777. if exist it.3 (del it.3)
  778. if exist it.4 (del it.4)
  779. if exist it.all (del it.all)
  780. REM
  781. REM Do special stuff to Create a list of all files that the IIS
  782. REM Localization team should be localizing.
  783. REM Extra things should be appended to the list (like files that iis owns but NT setup is installing for us)
  784. REM
  785. REM use hardcoded list since stragley files are no longer generated in the infutil2.exe cabbing process...
  786. REM if exist infutil2.loc (goto :UseAloneFile)
  787. REM There must not be an alone, file so lets use the hardcoded file instead.
  788. if NOT exist hardcode.parsed.lst (goto :CABSAreCreated)
  789. call ExecuteCmd.cmd "copy hardcode.parsed.lst infutil2.loc"
  790. :UseAloneFile
  791. REM
  792. REM in this file are all of the files that reside out side of the cabs
  793. REM which iis localization needs to localize....
  794. REM
  795. REM we need to add a couple of more entries to this file
  796. REM since there are files that iis owns but NT setup is installing for iis setup (so it won't be in this file)
  797. echo iissuba.dll >> infutil2.loc
  798. echo clusiis4.dll >> infutil2.loc
  799. echo regtrace.exe >> infutil2.loc
  800. echo iis.msc >> infutil2.loc
  801. echo iisnts.chm >> infutil2.loc
  802. echo iisntw.chm >> infutil2.loc
  803. echo iispmmc.chm >> infutil2.loc
  804. echo iissmmc.chm >> infutil2.loc
  805. echo win9xmig\pws\migrate.dll >> infutil2.loc
  806. :CABSAreCreated
  807. REM
  808. REM Remove our Temporary dir
  809. REM
  810. if exist %NewDir% (RD /S /Q %NewDir%)
  811. IF ERRORLEVEL 1 (sleep 5)
  812. if exist %NewDir% (RD /S /Q %NewDir%)
  813. IF ERRORLEVEL 1 (sleep 5)
  814. if exist %NewDir% (RD /S /Q %NewDir%)
  815. :End_IIS_MAKE_CAB
  816. REM get out of the inetsrv\dump directory
  817. popd
  818. :CreateCat
  819. REM ------------------------------------
  820. REM
  821. REM
  822. REM Create a catalog file for inetsrv
  823. REM
  824. REM
  825. REM ------------------------------------
  826. call logmsg.cmd "iis create cat:Creating nt5iis.CAT from nt5iis.lst..."
  827. pushd %RazzleToolPath%
  828. if exist %_NTPostBld%\inetsrv\dump\createcat.iis.log (del %_NTPostBld%\inetsrv\dump\createcat.iis.log)
  829. call createcat -f:%_NTPostBld%\inetsrv\dump\nt5iis.lst -c:nt5iis -t:%_NTPostBld%\inetsrv\dump -o:%_NTPOSTBLD% > %_NTPostBld%\inetsrv\dump\createcat.iis.log
  830. if errorlevel 1 (
  831. set errors=%errorlevel%
  832. call errmsg.cmd "iis create cat:failed, look in %_NTPostBld%\inetsrv\dump\createcat.iis.log"
  833. )
  834. popd
  835. call logmsg.cmd "iis create cat:end..."
  836. REM Now, theat the cab and the cat are generated, you can delete imshare.
  837. if exist %_NTPostBld%\inetsrv\help\ismshare (
  838. rd /s /q %_NTPostBld%\inetsrv\help\ismshare
  839. )
  840. if errorlevel 1 (
  841. call errmsg.cmd "rd /s /q %_NTPostBld%\inetsrv\help\ismshare failed"
  842. goto :End
  843. )
  844. :CreateCatEnd
  845. :THE_END_OF_IIS_POSTBUILD
  846. REM ------------------------------------
  847. REM
  848. REM
  849. REM THE END
  850. REM
  851. REM
  852. REM ------------------------------------
  853. call logmsg.cmd "iis:end iis postbuild."
  854. goto :End
  855. :RenameCaseSensitiveFiles
  856. REM ====================================
  857. REM Do some extra stuff to ensure that
  858. REM these .class files are named with mix case (not just lower case)
  859. REM ====================================
  860. pushd ..\aspjava
  861. IF ERRORLEVEL 1 (
  862. set errors=%errorlevel%
  863. call errmsg.cmd "iis:failed to pushd ..\aspjava dir. aborting"
  864. goto :EOF
  865. )
  866. call logmsg.cmd "iis:ensure cased filenames..."
  867. set TheClassFile=Application.class
  868. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  869. set TheClassFile=IApplicationObject.class
  870. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  871. set TheClassFile=IApplicationObjectDefault.class
  872. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  873. set TheClassFile=IASPError.class
  874. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  875. set TheClassFile=IReadCookie.class
  876. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  877. set TheClassFile=IReadCookieDefault.class
  878. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  879. set TheClassFile=IRequest.class
  880. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  881. set TheClassFile=IRequestDefault.class
  882. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  883. set TheClassFile=IRequestDictionary.class
  884. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  885. set TheClassFile=IRequestDictionaryDefault.class
  886. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  887. set TheClassFile=IResponse.class
  888. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  889. set TheClassFile=IResponseDefault.class
  890. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  891. set TheClassFile=IScriptingContext.class
  892. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  893. set TheClassFile=IScriptingContextDefault.class
  894. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  895. set TheClassFile=IServer.class
  896. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  897. set TheClassFile=IServerDefault.class
  898. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  899. set TheClassFile=ISessionObject.class
  900. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  901. set TheClassFile=ISessionObjectDefault.class
  902. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  903. set TheClassFile=IStringList.class
  904. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  905. set TheClassFile=IStringListDefault.class
  906. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  907. set TheClassFile=IVariantDictionary.class
  908. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  909. set TheClassFile=IVariantDictionaryDefault.class
  910. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  911. set TheClassFile=IWriteCookie.class
  912. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  913. set TheClassFile=IWriteCookieDefault.class
  914. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  915. set TheClassFile=Request.class
  916. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  917. set TheClassFile=Response.class
  918. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  919. set TheClassFile=ScriptingContext.class
  920. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  921. set TheClassFile=Server.class
  922. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  923. set TheClassFile=Session.class
  924. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  925. pushd ..\help\common
  926. IF ERRORLEVEL 1 (
  927. set errors=%errorlevel%
  928. call errmsg.cmd "iis:failed to pushd ..\help\common dir. aborting"
  929. popd
  930. goto :EOF
  931. )
  932. set TheClassFile=DialogLayout.class
  933. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  934. set TheClassFile=Element.class
  935. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  936. set TheClassFile=ElementList.class
  937. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  938. set TheClassFile=HHCtrl.class
  939. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  940. set TheClassFile=IndexPanel.class
  941. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  942. set TheClassFile=RelatedDialog.class
  943. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  944. set TheClassFile=SitemapParser.class
  945. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  946. set TheClassFile=TreeCanvas.class
  947. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  948. set TheClassFile=TreeView.class
  949. if exist %TheClassFile% (rename %TheClassFile% %TheClassFile%)
  950. popd
  951. popd
  952. goto :EOF
  953. :End
  954. seterror.exe "%errors%"& goto :EOF