setlocal if "%CPUBIN%"=="i386" set MYSTDDEFINE= if not "%CPUBIN%"=="i386" set MYSTDDEFINE= call cl /nologo /EP /Zs %MYSTDDEFINE% .\PMSvDist.inx >.\PMSvDist.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=PMSvDist set exefile=PMSvDist.exe set exename=PMSvDist 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 PMSvDist.CDF echo. del PMSvDist_2.cdf >nul 2>nul copy PMSvDist.cdf PMSvDist_2.cdf cd temp set n=0 for %%a in (*.*) do call ..\buildcdf.bat cmd1 %%a echo. >>..\PMSvDist_2.cdf echo [SourceFiles] >>..\PMSvDist_2.cdf echo SourceFiles0=%releasepoint%\%dumpdir% >>..\PMSvDist_2.cdf echo [SourceFiles0] >>..\PMSvDist_2.cdf set n=0 for %%a in (*.*) do call ..\buildcdf.bat cmd2 cd %home% echo Setting version information... call %DRMVERDIR%\drmver.exe >> PMSvDist_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 PMSvDist_2.cdf %releasepoint%\%dumpdir%\PMSvDist.cdf del PMSvDist_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%\PMSvDist.CDF %IEXPRESSDIR%\iexpress /N %quiet% %releasepoint%\%dumpdir%\PMSvDist.CDF del ~cabpack.cab del ~cabpack.ddf copy %exefile% %releasepoint% copy %exefile% %_BIN_DIR%\%CPUBIN% del %exefile% if %verbose%==0 del PMSvDist_2.cdf if %verbose%==0 del PMSvDist.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