Leaked source code of windows server 2003
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.

39 lines
1012 B

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