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.

79 lines
2.2 KiB

  1. @echo off
  2. REM
  3. REM Copy frs service, dlls and utilities to private release areas.
  4. REM first arg if present is the build number of the public used to compile and link with.
  5. REM next arg is switches to pass to xcopy.
  6. REM
  7. REM for this script to work you need to set the following reg keys -
  8. REM HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor [10 1 17]
  9. REM EnableExtensions = REG_DWORD 0x00000001
  10. REM DelayedExpansion = REG_DWORD 0x00000001
  11. REM
  12. set publib=
  13. if NOT "%1"=="" (
  14. rem for /f %%x in (%NT_ROOT%\0_current_public_is) do @echo Clean build FRS and tools for build %%x
  15. set publib=\%1
  16. shift
  17. )
  18. set TARG=
  19. set FRS_SYMBOLS=
  20. if "%_BuildArch%" == "x86" (
  21. set TARG=i386
  22. set FRS_SYMBOLS=%_NTX86TREE%\Symbols\retail\exe\ntfrs*.pdb %_NTX86TREE%\Symbols\retail\dll\ntfrs*.pdb
  23. )
  24. if "%_BuildArch%" == "ia64" (
  25. set TARG=ia64
  26. set FRS_SYMBOLS=%_NTia64TREE%\Symbols\retail\exe\ntfrs*.pdb %_NTia64TREE%\Symbols\retail\dll\ntfrs*.pdb
  27. )
  28. pushd main\obj\!TARG!
  29. REM -- dont do this is messes up the checksum in the SFP signature. splitsym ntfrs.exe
  30. popd
  31. REM file list to export
  32. set utils=test\dstree\obj\!TARG!\dstree.exe test\frs\obj\!TARG!\frs.exe
  33. set FL=!utils!
  34. set FL=!FL! main\obj\!TARG!\ntfrs.exe
  35. set FL=!FL! !FRS_SYMBOLS!
  36. set FL=!FL! ntfrsapi\obj\!TARG!\ntfrsapi.dll
  37. set FL=!FL! \nt\public\sdk\lib\i386\ntfrsapi.lib
  38. set FL=!FL! ntfrsutl\obj\!TARG!\ntfrsutl.exe
  39. set FL=!FL! ntfrsupg\obj\!TARG!\ntfrsupg.exe
  40. set FL=!FL! ntfrsres\obj\!TARG!\ntfrsres.dll
  41. set FL=!FL! perfdll\obj\!TARG!\ntfrsprf.dll
  42. set FL=!FL! perfdll\ntfrsrep.ini
  43. set FL=!FL! perfdll\ntfrscon.ini
  44. set FL=!FL! perfdll\ntfrsrep.h
  45. set FL=!FL! perfdll\ntfrscon.h
  46. set FL=!FL! \nt\private\genx\netevent\obj\!TARG!\netevent.dll
  47. set dest=\\davidor2\ntfrs \\scratch\scratch\ntfrs
  48. for %%d in (%dest%) do (
  49. md %%d\%_BuildArch%%publib%
  50. for %%x in (!FL!) do (
  51. echo %%x to %%d\%_BuildArch%%publib%
  52. xcopy %1 /Y /R %%x %%d\%_BuildArch%%publib% 1>nul
  53. )
  54. for %%x in (!utils!) do (
  55. echo %%x to %%d\%_BuildArch%%publib%
  56. xcopy %1 /Y /R %%x %%d\utils\%_BuildArch%%publib% 1>nul
  57. )
  58. )