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.

42 lines
1.0 KiB

  1. @echo off
  2. setlocal ENABLEDELAYEDEXPANSION
  3. if DEFINED _echo echo on
  4. if DEFINED verbose echo on
  5. REM ********************************************************************
  6. REM
  7. REM This script creates the cab
  8. REM
  9. REM ********************************************************************
  10. REM
  11. REM Params:
  12. REM
  13. REM %1 name of the cab (includes .cab)
  14. REM or the catalog file (does not include .CAT)
  15. REM %2 DDF directory - this is where makefile and CDF file are located
  16. REM %3 CAB or CAT to distinguish which is being created
  17. REM %4 CAB or CAT destination directory
  18. REM %5 Log file for CAT files
  19. if NOT DEFINED mybinaries (
  20. set mybinaries=%binaries%
  21. )
  22. set NTTREE=%mybinaries%
  23. cd /d %2
  24. if /i "%3" == "CAT" (
  25. echo started %1.CAT > %2\temp\%1.txt
  26. makecat -n -v %2\%1.CDF > %5
  27. ntsign %2\%1.CAT
  28. copy %2\%1.CAT %4\%1.CAT
  29. del /f /q %2\temp\%1.txt
  30. ) else (
  31. echo started %1 > %2\temp\%1.txt
  32. nmake /F makefile %4\%1
  33. del /f /q %2\temp\%1.txt
  34. )
  35. endlocal