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.
 
 
 
 
 
 

40 lines
1012 B

@echo off
REM Clean
rd /s /q o
md o
md o\drvmain
REM Copy input files to output directory (mimic postbuild)
call copyreqfiles.cmd o
pushd %SDXROOT%\windows\appcompat\db\o
REM Build database
set SHIMDBC_LANG=%1
if defined SHIMDBC_LANG goto BuildDatabase
set SHIMDBC_LANG=USA
:BuildDatabase
shimdbc custom -s -l %SHIMDBC_LANG% -ov 5.1 -op IA64 -x %SDXROOT%\windows\appcompat\db\makefile.xml
REM Append to MIGDB INF files
copy /b %_NTTREE%\winnt32\win9xupg\migdb.inf+migapp.txt+migapp.inx migdbpro.inf
copy /b %_NTTREE%\perinf\winnt32\win9xupg\migdb.inf+migapp.txt+migapp.inx migdbper.inf
REM Create the migration file migdb.rep
copy migdbpro.inf migdbpro.rep
copy migdbper.inf migdbper.rep
..\makerep.exe
REM Append to NTCOMPAT INF files
copy /b %_NTTREE%\winnt32\compdata\ntcompat.inf+drvmain\ntcompat_drv.inf ntcompat.inf
pushd drvmain
%SDXROOT%\windows\appcompat\buildtools\x86\hhc.exe drvmain.hhp
popd
copy drvmain\drvmain.chm .
copy drvmain\drvmain.inf .
popd