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.

70 lines
2.0 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM infsize_wrapper
  5. REM Call infsize.cmd
  6. REM
  7. REM Copyright (c) Microsoft Corporation. All rights reserved.
  8. REM
  9. REM ------------------------------------------------------------------
  10. if defined _CPCMAGIC goto CPCBegin
  11. perl -x "%~f0" %*
  12. goto :EOF
  13. #!perl
  14. use strict;
  15. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  16. use lib $ENV{RAZZLETOOLPATH};
  17. use PbuildEnv;
  18. use ParseArgs;
  19. use Logmsg;
  20. sub Usage { print<<USAGE; exit(1) }
  21. Runs infsize.cmd against %_NTPostBld% using 2600 sizes as default sizes
  22. USAGE
  23. sub Dependencies {
  24. if ( !open DEPEND, ">>$ENV{_NTPOSTBLD}\\..\\build_logs\\dependencies.txt" ) {
  25. errmsg("Unable to open dependency list file.");
  26. die;
  27. }
  28. print DEPEND<<DEPENDENCIES;
  29. \[$0\]
  30. IF { layout.inf } ADD { realsign\\layout.inf }
  31. DEPENDENCIES
  32. close DEPEND;
  33. exit;
  34. }
  35. my $qfe;
  36. parseargs('?' => \&Usage,
  37. 'plan' => \&Dependencies,
  38. 'qfe:' => \$qfe);
  39. if ( -f "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) {
  40. if ( !open SKIP, "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) {
  41. errmsg("Unable to open skip list file.");
  42. die;
  43. }
  44. while (<SKIP>) {
  45. chomp;
  46. exit if lc$_ eq lc$0;
  47. }
  48. close SKIP;
  49. }
  50. # *** NEXT FEW LINES ARE TEMPLATE ***
  51. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  52. __END__
  53. :CPCBegin
  54. set _CPCMAGIC=
  55. setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  56. REM *** BEGIN YOUR CMD SCRIPT BELOW ***
  57. set default=%RazzleToolPath%\sp\infsize.2600
  58. call ExecuteCmd.cmd "%razzletoolpath%\sp\infsize.cmd -i %_NTPostBld%\layout.inf -d %default% %_NTPostBld%"
  59. call ExecuteCmd.cmd "%razzletoolpath%\sp\infsize.cmd -i %_NTPostBld%\realsign\layout.inf -d %default% %_NTPostBld%"
  60. call ExecuteCmd.cmd "%razzletoolpath%\sp\infsize.cmd -i %_NTPostBld%\perinf\layout.inf -d %default% %_NTPostBld%\perinf %_NTPostBld%"
  61. call ExecuteCmd.cmd "%razzletoolpath%\sp\infsize.cmd -i %_NTPostBld%\perinf\realsign\layout.inf -d %default% %_NTPostBld%\perinf %_NTPostBld%"