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.

47 lines
1.1 KiB

  1. @echo off
  2. REM Clean
  3. rd /s /q o
  4. md o
  5. md o\drvmain
  6. md o\apps_sp
  7. REM Copy input files to output directory (mimic postbuild)
  8. call copyreqfiles.cmd o
  9. pushd %SDXROOT%\windows\appcompat\db\o
  10. REM Build database
  11. set SHIMDBC_LANG=%1
  12. if defined SHIMDBC_LANG goto BuildDatabase
  13. set SHIMDBC_LANG=USA
  14. :BuildDatabase
  15. shimdbc custom -s -l %SHIMDBC_LANG% -ov 5.1 -x %SDXROOT%\windows\appcompat\db\makefile.xml
  16. REM Append to MIGDB INF files
  17. copy /b %_NTTREE%\winnt32\win9xupg\migdb.inf+migapp.txt+migapp.inx migdbpro.inf
  18. copy /b %_NTTREE%\perinf\winnt32\win9xupg\migdb.inf+migapp.txt+migapp.inx migdbper.inf
  19. REM Create the migration file migdb.rep
  20. copy migdbpro.inf migdbpro.rep
  21. copy migdbper.inf migdbper.rep
  22. ..\makerep.exe
  23. REM Append to NTCOMPAT INF files
  24. copy /b %_NTTREE%\winnt32\compdata\ntcompat.inf+drvmain\ntcompat_drv.inf ntcompat.inf
  25. %SDXROOT%\windows\appcompat\buildtools\x86\hhc.exe apps.hhp
  26. pushd apps_sp
  27. %SDXROOT%\windows\appcompat\buildtools\x86\hhc.exe apps_sp.hhp
  28. popd
  29. pushd drvmain
  30. %SDXROOT%\windows\appcompat\buildtools\x86\hhc.exe drvmain.hhp
  31. popd
  32. copy apps_sp\apps_sp.chm .
  33. copy drvmain\drvmain.chm .
  34. copy drvmain\drvmain.inf .
  35. popd