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.

88 lines
2.8 KiB

  1. @echo off
  2. rem initfrst build_num [special_util_dir]
  3. rem
  4. rem Update idw tools and frstrack.cmd on \\davidor2\ntfrs and \\scratch\scratch\ntfrs and \\mastiff\scratch\ntfrs
  5. rem if [special_util_dir] is supplied then copy all the tools there (e.g. 1773 vintage tools)
  6. rem
  7. if "%1"=="" (
  8. echo initfrst release_build_num
  9. goto QUIT
  10. )
  11. set SUD=\%2
  12. if NOT "%2"=="" (
  13. echo Copying utils to special util dir: %2
  14. )
  15. if NOT EXIST \\ntbuilds\release\usa\%1\x86\fre.srv\idw (
  16. echo \\ntbuilds\release\usa\%1\x86\fre.srv\idw does not exist or is inaccessible.
  17. goto QUIT
  18. )
  19. if NOT EXIST \\ntbuilds\release\usa\%1\alpha\fre.srv\idw (
  20. echo \\ntbuilds\release\usa\%1\alpha\fre.srv\idw does not exist or is inaccessible.
  21. goto QUIT
  22. )
  23. SETLOCAL ENABLEEXTENSIONS
  24. REM list of target dirs for frstrack.
  25. set dests=\\davidor2\ntfrs \\scratch\scratch\ntfrs \\mastiff\scratch\ntfrs
  26. REM list of idw exes from release server to put on debug sites since most test installs don't include idw\
  27. set idwexe=nltest netdiag mv du filever regdmp regini list buildnum tlist
  28. REM copy the idw tools to the targets.
  29. for %%x in (%idwexe%) do (
  30. for %%d in (%dests%) do (
  31. for %%a in (x86 alpha) do (
  32. if NOT EXIST %%d\utils\%%a%SUD% md %%d\utils\%%a%SUD%
  33. copy \\ntbuilds\release\usa\%1\%%a\fre.srv\idw\%%x.exe %%d\utils\%%a%SUD% 1>nul: 2>nul:
  34. @echo Copied %%d\utils\%%a%SUD%\%%x.exe
  35. )
  36. )
  37. )
  38. REM now copy the FRS project's private scripts and tools to the targets.
  39. set srcroot=nt\private\net\svcimgs\ntrepl
  40. REM locations of private images for alpha and x86
  41. set privalpha=\\davidor6\eer\%srcroot%
  42. set privx86=\\davidor6\eer\%srcroot%
  43. REM List of private images to copy
  44. set privexe_x86=test\dstree\obj\i386\dstree.exe test\frs\obj\i386\frs.exe ..\..\..\sdktools\linkd\obj\i386\linkd.exe
  45. set privexe_alp=test\dstree\obj\alpha\dstree.exe test\frs\obj\alpha\frs.exe ..\..\..\sdktools\linkd\obj\alpha\linkd.exe
  46. REM List of private scripts to copy.
  47. set privscripts=test\frstrack.cmd test\frstrck1.cmd
  48. for %%d in (%dests%) do (
  49. for %%p in (%privscripts%) do (
  50. copy \%srcroot%\%%p %%d 1>nul: 2>nul:
  51. echo Copied \%srcroot%\%%p to %%d
  52. )
  53. if NOT EXIST %%d\utils\x86%SUD% md %%d\utils\x86%SUD%
  54. for %%p in (%privexe_x86%) do (
  55. copy %privx86%\%%p %%d\utils\x86%SUD% 1>nul: 2>nul:
  56. echo Copied %privx86%\%%p to %%d\utils\x86%SUD%
  57. )
  58. if NOT EXIST %%d\utils\alpha%SUD% md %%d\utils\alpha%SUD%
  59. for %%p in (%privexe_alp%) do (
  60. copy %privalpha%\%%p %%d\utils\alpha%SUD% 1>nul: 2>nul:
  61. echo Copied %privalpha%\%%p to %%d\utils\alpha%SUD%
  62. )
  63. for %%x in (x86 alpha) do (
  64. echo "Utils from build %1" > %%d\utils\%%x\readme.txt
  65. )
  66. )
  67. :QUIT