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.

55 lines
1.9 KiB

  1. @REM -----------------------------------------------------------------
  2. @REM
  3. @REM spcdimage - JeremyD
  4. @REM Create a slipstream cd image based on the normally generated
  5. @REM cd images
  6. @REM
  7. @REM Copyright (c) Microsoft Corporation. All rights reserved.
  8. @REM
  9. @REM -----------------------------------------------------------------
  10. @perl -x "%~f0" %*
  11. @goto :EOF
  12. #!perl
  13. use strict;
  14. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  15. use lib $ENV{RAZZLETOOLPATH};
  16. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts\\svcpack";
  17. use PbuildEnv;
  18. use ParseArgs;
  19. use SP;
  20. use Utils;
  21. sub Usage { print<<USAGE; exit(1) }
  22. spcdimage [-l <language>]
  23. Create a slipstream cd image based on the normally generated cd images.
  24. USAGE
  25. parseargs('?' => \&Usage);
  26. for my $sku (SP::sp_skus()) {
  27. my $dir = Utils::inf_dir($sku);
  28. my $compdir = Utils::comp_inf_dir($sku);
  29. # compress and copy in the catalog that signs the new versions of layout and drvindex
  30. # use compression if that's what it looks like everyone else is doing
  31. if (-e "$compdir\\nt5inf.ca_") {
  32. Utils::sys("copy $ENV{_NTPOSTBLD}\\SP\\CAT\\$sku\\nt5inf.ca_ " .
  33. "$ENV{_NTPOSTBLD}\\SP\\$sku\\nt5inf.ca_");
  34. }
  35. # use uncompressed version otherwise
  36. else {
  37. Utils::sys("copy $ENV{_NTPOSTBLD}\\SP\\CAT\\$sku\\nt5inf.cat " .
  38. "$ENV{_NTPOSTBLD}\\SP\\$sku\\nt5inf.cat");
  39. }
  40. Utils::sys("compdir /kelnstd $ENV{_NTPOSTBLD}\\SP\\common $ENV{_NTPOSTBLD}\\$sku\\i386");
  41. Utils::sys("compdir /kelnstd $ENV{_NTPOSTBLD}\\SP\\$sku $ENV{_NTPOSTBLD}\\$sku\\i386");
  42. # clone SP tag file from regular tag file
  43. my $tagfile = 'win51' . Utils::tag_letter($ENV{_BUILDARCH}) .
  44. Utils::tag_letter($sku) . '.sp1';
  45. Utils::sys("copy $ENV{_NTPOSTBLD}\\${sku}\\win51 " .
  46. "$ENV{_NTPOSTBLD}\\${sku}\\$tagfile");
  47. }