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.

112 lines
2.3 KiB

  1. @echo off
  2. REM ------------------------------------------------------------------
  3. REM
  4. REM ocinf.cmd
  5. REM wrap ocinf.exe which adds file sized to infs listed in sysoc.inf
  6. REM
  7. REM Owner: WadeLa
  8. REM
  9. REM Copyright (c) Microsoft Corporation. All rights reserved.
  10. REM
  11. REM ------------------------------------------------------------------
  12. if defined _CPCMAGIC goto CPCBegin
  13. perl -x "%~f0" %*
  14. goto :EOF
  15. #!perl
  16. use strict;
  17. use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts";
  18. use lib $ENV{RAZZLETOOLPATH};
  19. use PbuildEnv;
  20. use ParseArgs;
  21. use Logmsg;
  22. sub Usage { print<<USAGE; exit(1) }
  23. ocinf.cmd
  24. Fills in SizeApproximation field in infs listed in sysoc.inf
  25. USAGE
  26. sub Dependencies {
  27. if ( !open DEPEND, ">>$ENV{_NTPOSTBLD}\\..\\build_logs\\dependencies.txt" ) {
  28. errmsg("Unable to open dependency list file.");
  29. die;
  30. }
  31. print DEPEND<<DEPENDENCIES;
  32. \[$0\]
  33. IF {
  34. wbemoc.inf
  35. fxsocm.inf
  36. netoc.inf
  37. rsoptcom.inf
  38. iis.inf
  39. comnt5.inf
  40. dtcnt5.inf
  41. dtcsetup.inf
  42. comsetup.inf
  43. setupqry.inf
  44. tsoc.inf
  45. msmqocm.inf
  46. ocmri.inf
  47. clusocm.inf
  48. netfxocm.inf
  49. ins.inf
  50. ims.inf
  51. fp40ext.inf
  52. certocm.inf
  53. licenoc.inf
  54. wmsocm.inf
  55. proccon.inf
  56. au.inf
  57. msmsgs.inf
  58. wmaccess.inf
  59. rootau.inf
  60. ieaccess.inf
  61. oeaccess.inf
  62. wmpocm.inf
  63. games.inf
  64. accessor.inf
  65. communic.inf
  66. multimed.inf
  67. optional.inf
  68. pinball.inf
  69. wordpad.inf
  70. igames.inf
  71. tabletpc.inf
  72. medctroc.inf
  73. } ADD {
  74. layout.inf
  75. sysoc.inf
  76. }
  77. DEPENDENCIES
  78. close DEPEND;
  79. exit;
  80. }
  81. my $qfe;
  82. parseargs('?' => \&Usage,
  83. 'plan' => \&Dependencies,
  84. 'qfe:' => \$qfe);
  85. if ( -f "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) {
  86. if ( !open SKIP, "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) {
  87. errmsg("Unable to open skip list file.");
  88. die;
  89. }
  90. while (<SKIP>) {
  91. chomp;
  92. exit if lc$_ eq lc$0;
  93. }
  94. close SKIP;
  95. }
  96. # *** NEXT FEW LINES ARE TEMPLATE ***
  97. $ENV{"_CPCMAGIC"}++;exit(system($0)>>8);
  98. __END__
  99. :CPCBegin
  100. set _CPCMAGIC=
  101. setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
  102. REM *** BEGIN YOUR CMD SCRIPT BELOW ***
  103. call executecmd.cmd "%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\ocinf.exe -inf:%_NTPostBld%\sysoc.inf -layout:%_NTPostBld%\layout.inf"
  104. call executecmd.cmd "%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\ocinf.exe -inf:%_NTPostBld%\perinf\sysoc.inf -layout:%_NTPostBld%\perinf\layout.inf"