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.

28 lines
1.1 KiB

  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. REM
  4. REM some notes
  5. REM
  6. REM 1. this does NOT need to be templatized. this script will NOT
  7. REM run on it's own. it is only called via sfcgen.cmd, which is
  8. REM templatized.
  9. REM 2. because it's already templatized, we can call errmsg etc
  10. REM get the product type from the command line
  11. set ProductType=%1
  12. set ProductLetter=%2
  13. REM issue the filegen command
  14. call ExecuteCmd.cmd "filegen.exe /i:%_NTPostBld% /i:%_NTPostBld%\%1inf /o:%myarchitecture%_%ProductType%.dat /h:%myarchitecture%_%ProductType%.h /a:%inputinf% /p:%myarchitecture% /d:%ProductType% -s:%ProductType%Files /t:%_NTPostBld%\build_logs\%myarchitecture%%ProductType% -b:%_NTPostBld%\congeal_scripts\sfcgen%ProductLetter%.txt"
  15. REM verify that filegen worked
  16. if NOT exist %myarchitecture%_%ProductType%.h (
  17. call errmsg.cmd "%script_name% %myarchitecture%_%ProductType%.h failed to generate."
  18. )
  19. REM send the event to say we're done
  20. perl %RazzleToolPath%\PostBuildScripts\cmdevt.pl -ih sfcgen.%ProductType%
  21. perl %RazzleToolPath%\PostBuildScripts\cmdevt.pl -is sfcgen.%ProductType%
  22. endlocal