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.
 
 
 
 
 
 

55 lines
1.5 KiB

@echo off
setlocal ENABLEEXTENSIONS
if DEFINED _echo echo on
if DEFINED verbose echo on
set inf=
REM ------------------------------------------------
REM Get command-line options
REM ------------------------------------------------
for %%a in (./ .- .) do if ".%1." == "%%a?." goto Usage
if "%1" == "" goto Usage
set mydir=%1
pushd %mydir%
if NOT exist nt5inf.ca_ goto Usage
expand nt5inf.ca_ nt5inf.cat >NUL
if exist layout.inf call :update layout.inf&set inf=1
if exist syssetup.inf call :update syssetup.inf&set inf=1
if "%inf%"=="" goto Usage
echo signing updated nt5inf.cat ...
signtool sign %SIGNTOOL_SIGN% "%mydir%\nt5inf.CAT"
del nt5inf.ca_
goto end
:update
set file=%1
echo updating nt5inf.cat with signature for new %file% ...
updcat nt5inf.cat -a %file%
goto :EOF
:Usage
echo IF you have either LAYOUT.INF or SYSSETUP.INF
echo in your signing directory. Deltacat will not
echo sign these files which must be signed in nt5inf.cat.
echo.
echo Let deltacat run then do the following:
echo 1. Copy nt5inf.ca_ to your signing directory
echo from wherever your are installing, e.g.
echo \\ntbuilds\release\usa\latest.tst\x86\fre.wks,
echo or, e.g. e:\i386.
echo 2. Make sure you have the most recent updcat.exe
echo 3. Run infsign [directory], e.g. infsign c:\bin
echo.
echo When complete, run winnt32 /m:[directory]
popd
:end
@ENDLOCAL