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.

60 lines
1.9 KiB

  1. @REM =================================================================
  2. @REM ==
  3. @REM == mkregres.bat -- ISPU test copier
  4. @REM ==
  5. @REM == called from ISPU/MKREGRES.BAT
  6. @REM ==
  7. @REM == parameters if called from main regress:
  8. @REM == 1 = ispu base directory (eg: \nt\private\ispunt)
  9. @REM == 2 = built directory (eg: \nt\private\ispunt\bin\objd\i386)
  10. @REM == 3 = target root directory (eg: \\testmachine\share1\ispunt)
  11. @REM ==
  12. @REM =================================================================
  13. @echo off
  14. @SETLOCAL ENABLEEXTENSIONS
  15. @if "%1" == "" goto NeedHelp
  16. @if "%2" == "" goto NeedHelp
  17. @if "%3" == "" goto NeedHelp
  18. @set THISDIR=pkitrust\test
  19. @set BASEDIR=%1
  20. @set EXEDIR=%2
  21. @set TARGETDIR=%3
  22. @goto DoCopy
  23. @goto ExitMkRegress
  24. @REM =====================================================
  25. :NeedHelp
  26. @REM =====================================================
  27. @echo Usage: mkregres source_test_directory source_exe_directory dest_test_directory
  28. @goto ExitMkRegress
  29. @REM =====================================================
  30. :ExitMkRegress
  31. @REM =====================================================
  32. @cd %BASEDIR%
  33. @ENDLOCAL
  34. goto :EOF
  35. @REM =====================================================
  36. :DoCopy
  37. @REM =====================================================
  38. xcopy %BASEDIR%\%THISDIR%\signing\*.* %TARGETDIR%\%THISDIR%\signing\*.* /s /v /e
  39. xcopy %BASEDIR%\%THISDIR%\catalogs\*.* %TARGETDIR%\%THISDIR%\catalogs\*.* /s /v /e
  40. copy /b %BASEDIR%\%THISDIR%\*.* %TARGETDIR%\%THISDIR%\*.*
  41. copy %EXEDIR%\chktrust.* %TARGETDIR%\.
  42. copy %EXEDIR%\makecat.* %TARGETDIR%\.
  43. copy %EXEDIR%\signcode.* %TARGETDIR%\.
  44. copy %BASEDIR%\grepout.bat %TARGETDIR%\.