@echo off REM ------------------------------------------------------------------ REM REM ocinf.cmd REM wrap ocinf.exe which adds file sized to infs listed in sysoc.inf REM REM Owner: WadeLa REM REM Copyright (c) Microsoft Corporation. All rights reserved. REM REM ------------------------------------------------------------------ if defined _CPCMAGIC goto CPCBegin perl -x "%~f0" %* goto :EOF #!perl use strict; use lib $ENV{RAZZLETOOLPATH} . "\\PostBuildScripts"; use lib $ENV{RAZZLETOOLPATH}; use PbuildEnv; use ParseArgs; use Logmsg; sub Usage { print<>$ENV{_NTPOSTBLD}\\..\\build_logs\\dependencies.txt" ) { errmsg("Unable to open dependency list file."); die; } print DEPEND< \&Usage, 'plan' => \&Dependencies, 'qfe:' => \$qfe); if ( -f "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) { if ( !open SKIP, "$ENV{_NTPOSTBLD}\\..\\build_logs\\skip.txt" ) { errmsg("Unable to open skip list file."); die; } while () { chomp; exit if lc$_ eq lc$0; } close SKIP; } # *** NEXT FEW LINES ARE TEMPLATE *** $ENV{"_CPCMAGIC"}++;exit(system($0)>>8); __END__ :CPCBegin set _CPCMAGIC= setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS REM *** BEGIN YOUR CMD SCRIPT BELOW *** call executecmd.cmd "%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\ocinf.exe -inf:%_NTPostBld%\sysoc.inf -layout:%_NTPostBld%\layout.inf" call executecmd.cmd "%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\ocinf.exe -inf:%_NTPostBld%\perinf\sysoc.inf -layout:%_NTPostBld%\perinf\layout.inf"