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.
 
 
 
 
 
 

168 lines
3.7 KiB

setlocal
if "%CPUBIN%"=="i386" set MYSTDDEFINE=
if not "%CPUBIN%"=="i386" set MYSTDDEFINE=
call cl /nologo /EP /Zs %MYSTDDEFINE% .\WMDMCore.inx >.\WMDMCore.inf
@echo off
set verbose=0
if "%1" == "/v" set verbose=1
if "%1" == "/V" set verbose=1
if "%1" == "-v" set verbose=1
if "%1" == "-V" set verbose=1
if %verbose%==1 echo on
REM ***************************
REM Added by Praveen 01/09/01
REM ***************************
set _REL_DIR=%_NTx86TREE%\WMDMRelease\%_BUILDTYPE%
set DRMVERDIR=..\drmver\obj\i386
set IEXPRESSDIR=..\iexpress
REM ****************************
set releasepoint=%_REL_DIR%
set dumpdir=WMDMCore
set exefile=WMDMCore.exe
set exename=WMDMCore
set home=%cd%
set CONTROLFILE=%_REL_DIR%\%dumpdir%\control.ini
set COUNT=1
echo. > %CONTROLFILE%
rem
rem Prep the target directory
rem
echo Building %exefile% setup for releasepoint %releasepoint%
@mkdir %releasepoint%\.. >nul 2>nul
@mkdir %releasepoint% >nul 2>nul
@mkdir %releasepoint%\%dumpdir% >nul 2>nul
echo.
echo Collect the files
echo.
mkdir obj >nul 2>nul
del obj\checkrel.out >nul 2>nul
rmdir /s/q temp
mkdir temp
call files.bat CAB
if %verbose%==1 echo on
dir /s temp | qgrep -e "Total of" > obj\checkrel2.out
set categories=Install
set root=%home%\temp
echo.
echo Copy all files into TEMP directory where IEXPRESS will collect.
echo At the same time, rename any duplicates to unique filenames.
echo.
for %%c in (%categories%) do cd %root%\%%c 2>nul && for %%a in (*.*) do call %home%\makeset3 %%a
cd %home%
attrib -R temp\*.*
cd %home%
echo.
echo Generate WMDMCore.CDF
echo.
del WMDMCore_2.cdf >nul 2>nul
copy WMDMCore.cdf WMDMCore_2.cdf
cd temp
set n=0
for %%a in (*.*) do call ..\buildcdf.bat cmd1 %%a
echo. >>..\WMDMCore_2.cdf
echo [SourceFiles] >>..\WMDMCore_2.cdf
echo SourceFiles0=%releasepoint%\%dumpdir% >>..\WMDMCore_2.cdf
echo [SourceFiles0] >>..\WMDMCore_2.cdf
set n=0
for %%a in (*.*) do call ..\buildcdf.bat cmd2
cd %home%
echo Setting version information...
call %DRMVERDIR%\drmver.exe >> WMDMCore_2.cdf
echo.
echo Copy raw setup to the dump directory
echo.
@del %releasepoint%\%exefile% >nul 2>nul
@rmdir /s /q %releasepoint%\%dumpdir% >nul 2>nul
mkdir %releasepoint%\%dumpdir%
copy temp\*.* %releasepoint%\%dumpdir%
copy WMDMCore_2.cdf %releasepoint%\%dumpdir%\WMDMCore.cdf
del WMDMCore_2.cdf >nul 2>nul
copy .\eula.txt %releasepoint%\%dumpdir%
rem if exist .\eula.txt attrib -r .\eula.txt
rem copy ..\eula.txt .
echo.
echo Run IEXPRESS to build setup
echo.
set quiet=/Q /M
if %verbose%==1 set quiet=
echo Running %IEXPRESSDIR%\iexpress /N %quiet% %releasepoint%\%dumpdir%\WMDMCore.CDF
%IEXPRESSDIR%\iexpress /N %quiet% %releasepoint%\%dumpdir%\WMDMCore.CDF
del ~cabpack.cab
del ~cabpack.ddf
copy %exefile% %releasepoint%
del %exefile%
if %verbose%==0 del WMDMCore_2.cdf
if %verbose%==0 del WMDMCore.inf
if %verbose%==0 rmdir /s /q temp
rem
rem build cabs
rem
call makecab.bat
rem
rem Report errors
rem
:error
if exist obj\checkrel.out goto someerrors
echo SETUP BUILD REPORT for %releasepoint% > obj\checkrel.out
echo All files exist >> obj\checkrel.out
type obj\checkrel2.out >> obj\checkrel.out
goto noerrors
:someerrors
del obj\checkrel4.out
rename obj\checkrel.out checkrel4.out
echo SETUP BUILD REPORT for %releasepoint% > obj\checkrel.out
type obj\checkrel4.out >> obj\checkrel.out
wc -l obj\checkrel4.out | trans obj\\checkrel4.out "Files missing" >> obj\checkrel.out
type obj\checkrel2.out >> obj\checkrel.out
:noerrors
type obj\checkrel.out
endlocal