Source code of Windows XP (NT5)
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.

78 lines
2.0 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! perfdll\obj\!TARG!\ntfrsprf.dll
  41. set FL=!FL! perfdll\ntfrsrep.ini
  42. set FL=!FL! perfdll\ntfrscon.ini
  43. set FL=!FL! perfdll\ntfrsrep.h
  44. set FL=!FL! perfdll\ntfrscon.h
  45. set FL=!FL! \nt\private\genx\netevent\obj\!TARG!\netevent.dll
  46. set dest=\\davidor2\ntfrs \\scratch\scratch\ntfrs
  47. for %%d in (%dest%) do (
  48. md %%d\%_BuildArch%%publib%
  49. for %%x in (!FL!) do (
  50. echo %%x to %%d\%_BuildArch%%publib%
  51. xcopy %1 /Y /R %%x %%d\%_BuildArch%%publib% 1>nul
  52. )
  53. for %%x in (!utils!) do (
  54. echo %%x to %%d\%_BuildArch%%publib%
  55. xcopy %1 /Y /R %%x %%d\utils\%_BuildArch%%publib% 1>nul
  56. )
  57. )