mirror of https://github.com/lianthony/NT4.0
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.
230 lines
8.2 KiB
230 lines
8.2 KiB
REM ******************
|
|
REM
|
|
REM MAKE NT CD PRODUCT
|
|
REM
|
|
REM Modifications:
|
|
REM
|
|
REM 08.18.93 Joe Holman Made script build alpha binaries.
|
|
REM
|
|
REM ******************
|
|
|
|
REM Sample environment variables needed for English release:
|
|
REM
|
|
REM set COMPRESS_X86BINS=\\ntx861\cmptree.%5
|
|
REM set LANGUAGE=
|
|
REM set COPYDBGFILES=1
|
|
REM set X86BINS=\\ntx861\cdfree.%5
|
|
REM set MIPSBINS=\\ntjazz1\ntcdfree.%5
|
|
REM set PPCBINS=\\ntppc1\ntcdfree.%5
|
|
REM set ALPHABINS=\\ntalpha1\ntcdfree.%5
|
|
REM set X86DBGSOURCE=\\ntx861\freebins.%5\nt\symbols
|
|
REM set MIPSDBGSOURCE=\\ntjazz1\freebins.%5\nt\symbols
|
|
REM set PPCDBGSOURCE=\\ntppc1\freebins.%5\nt\symbols
|
|
REM set ALPHADBGSOURCE=\\ntalpha1\freebins.%5\nt\symbols
|
|
REM set X86DBGBINS=\\ntx861\ntcdfree.%5\nt
|
|
REM set MIPSDBGBINS=\\ntjazz1\ntcdfree.%5\nt
|
|
REM set PPCDBGBINS=\\ntppc1\ntcdfree.%5\nt
|
|
REM set ALPHADBGBINS=\\ntalpha1\ntcdfree.%5\nt
|
|
REM
|
|
|
|
rem See if there are not enough parameters specified.
|
|
rem
|
|
if "%7"=="" goto USAGE
|
|
|
|
rem Verify that environment variables equal something decent.
|
|
rem
|
|
if "%COMPRESS_X86BINS%"=="" goto USAGE
|
|
if "%LANGUAGE%"=="" goto MAKECD
|
|
if "%LANGUAGE%"=="FRN" goto MAKECD
|
|
if "%LANGUAGE%"=="GER" goto MAKECD
|
|
if "%LANGUAGE%"=="SPA" goto MAKECD
|
|
|
|
:USAGE
|
|
@echo on
|
|
@echo.
|
|
@echo PURPOSE: Puts the NTCD product on a SCSI disk.
|
|
@echo.
|
|
@echo PARAMETERS:
|
|
@echo.
|
|
@echo #1 [SYNC or NOSYNC] - Whether to sync up INFS and makefile.inc.
|
|
@echo #2 [INFS or NOINFS] - Whether to create the INF files.
|
|
@echo #3 [COPY or NOCOPY] - Whether to copy all files to a SCSI disk.
|
|
@echo #4 [LM or NT] - Whether to make Windows NT or Lan Manager.
|
|
@echo #5 [Build #]
|
|
@echo #6 [Setup Drive] - C:, D:, ... Drive where enlisted in Setup.
|
|
@echo #7 [CD ROM Target Disk] - C:, D:, ... Drive where to put CD ROM files.
|
|
@echo.
|
|
@echo Set LANGUAGE via environment variable to blank(ie ENG.), GER, FRN, or SPA.
|
|
@echo Set COMPRESS_X86BINS environment variable to path of compressed files.
|
|
@echo Set COPYDBGFILES=1 to copy .DBG files and debuggers to target.
|
|
@echo Set X86BINS to location of flat x86 share, no trailing \.
|
|
@echo Set MIPSBINS to location of flat mips share, no trailing \.
|
|
@echo Set PPCBINS to location of flat ppc share, no trailing \.
|
|
@echo Set ALPHABINS to location of flat alpha share, no trailing \.
|
|
@echo Set X86DBGSOURCE variable to symbols path for x86 .DBG files.
|
|
@echo Set MIPSDBGSOURCE variable to symbols path for MIPS .DBG files.
|
|
@echo Set PPCDBGSOURCE variable to symbols path for PPC .DBG files.
|
|
@echo Set ALPHADBGSOURCE varialbe to symbols path for ALPHA .DBG files.
|
|
@echo Set X86DBGBINS variable to symbols path for x86 debugger files.
|
|
@echo Set MIPSDBGBINS variable to symbols path for MIPS debugger files.
|
|
@echo Set PPCDBGBINS variable to symbols path for PPC debugger files.
|
|
@echo Set ALPHADBGBINS variable to symbols path for ALPHA debugger files.
|
|
goto END
|
|
|
|
:MAKECD
|
|
|
|
REM ************************************
|
|
REM Set environment variables for script
|
|
REM ************************************
|
|
|
|
set FLOPDIR=%6\%4cd%5.%LANGUAGE%\disks
|
|
set SETUPDIR=\nt\private\windows\setup
|
|
set LM525=
|
|
set LM35=
|
|
set LMCD=
|
|
set NT525=
|
|
set NT35=
|
|
set NTCD=
|
|
set MERGEONLY=MERGEONLY
|
|
set %4CD=1
|
|
set BATCH_ECHO=off
|
|
set INFS=..\inf\newinf\%4cd
|
|
set COMPRESS_INFS=.\compress\%4cdinf
|
|
set LOGFILE=%LANGUAGE%%4cd.log
|
|
set RENAME_UNCOMPRESSED=.\compress\rename
|
|
set RENAME_COMPRESSED=.\compress\rename\compress
|
|
|
|
%6
|
|
cd %SETUPDIR%\bom
|
|
if exist %LOGFILE% del /q %LOGFILE%
|
|
|
|
REM ***********************************
|
|
REM SSYNC and check out necessary files
|
|
REM ***********************************
|
|
|
|
%6
|
|
if "%1"=="NOSYNC" goto INFS
|
|
|
|
cd %SETUPDIR%\inf
|
|
ssync -r
|
|
cd %SETUPDIR%\bom
|
|
ssync bom.txt
|
|
|
|
REM ****************************
|
|
REM Update file sizes, Make INFs
|
|
REM ****************************
|
|
|
|
:INFS
|
|
|
|
cd %SETUPDIR%\bom
|
|
copy bom.txt %4cdbom.txt
|
|
|
|
if "%3" == "NOCOPY" goto NOCOPY1
|
|
|
|
makedisk %LOGFILE% %4cdbom.txt rename %X86BINS% %X86BINS% %RENAME_UNCOMPRESSED% %RENAME_UNCOMPRESSED% u N
|
|
compress -r -d %RENAME_UNCOMPRESSED%\* %RENAME_COMPRESSED%
|
|
|
|
:NOCOPY1
|
|
|
|
if "%2"=="NOINFS" goto COPY
|
|
|
|
size %LOGFILE% %4cdbom.txt . . f
|
|
layout %LOGFILE% %4cdbom.txt %4cdlay.txt %4cd 500000000
|
|
del /q /s ..\inf\newinf\*.*
|
|
del /q /s ..\inf\filelist\*.*
|
|
infs %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd
|
|
dosnet %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\i386\dosnet.inf %4cd
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\i386\winperms.txt %4cd x86
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\mips\winperms.txt %4cd mips
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\ppc\winperms.txt %4cd ppc
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\alpha\winperms.txt %4cd alpha
|
|
cd %SETUPDIR%\inf
|
|
build -e
|
|
|
|
cd %SETUPDIR%\bom
|
|
copy bom.txt %4cdbom.txt
|
|
cats %LOGFILE% %4cdbom.txt %4cd
|
|
|
|
size %LOGFILE% %4cdbom.txt #F-* . b
|
|
if "%LANGUAGE%"=="" size %LOGFILE% %4cdbom.txt #S+ENG . b
|
|
if not "%LANGUAGE%"=="" size %LOGFILE% %4cdbom.txt #S+%LANGUAGE% . b
|
|
if "%LANGUAGE%"=="FIN" size %LOGFILE% %4cdbom.txt #P+FIN . b
|
|
if not "%LANGUAGE%"=="FIN" size %LOGFILE% %4cdbom.txt #P-FIN . b
|
|
|
|
size %LOGFILE% %4cdbom.txt x86bins %X86BINS% b
|
|
size %LOGFILE% %4cdbom.txt renamed %RENAME_UNCOMPRESSED% b
|
|
size %LOGFILE% %4cdbom.txt mipsbins %MIPSBINS% b
|
|
size %LOGFILE% %4cdbom.txt ppcbins %PPCBINS% b
|
|
size %LOGFILE% %4cdbom.txt alphabins %ALPHABINS% b
|
|
size %LOGFILE% %4cdbom.txt infs %INFS% b
|
|
size %LOGFILE% %4cdbom.txt tagfiles . b
|
|
layout %LOGFILE% %4cdbom.txt %4cdlay.txt %4cd 500000000
|
|
cd %SETUPDIR%\bom
|
|
del /q /s ..\inf\newinf\*.*
|
|
del /q /s ..\inf\filelist\*.*
|
|
infs %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd
|
|
dosnet %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\i386\dosnet.inf %4cd
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\i386\winperms.txt %4cd x86
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\mips\winperms.txt %4cd mips
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\ppc\winperms.txt %4cd ppc
|
|
acllist %LOGFILE% %4cdlay.txt ..\inf\filelist\%4cd\alpha\winperms.txt %4cd alpha
|
|
cd %SETUPDIR%\inf
|
|
build -e
|
|
cd %SETUPDIR%\inf\newinf\%4cd\i386
|
|
del /f /q %SETUPDIR%\bom\compress\%4cdinf\i386\*.*
|
|
compress -r *.* %SETUPDIR%\bom\compress\%4cdinf\i386
|
|
copy ..\mips\*.* %SETUPDIR%\bom\compress\%4cdinf\mips\*.*
|
|
copy ..\ppc\*.* %SETUPDIR%\bom\compress\%4cdinf\ppc\*.*
|
|
copy ..\alpha\*.* %SETUPDIR%\bom\compress\%4cdinf\alpha\*.*
|
|
|
|
|
|
REM ********************************
|
|
REM Copy files onto target SCSI disk
|
|
REM ********************************
|
|
|
|
:COPY
|
|
|
|
if "%3"=="NOCOPY" goto END
|
|
|
|
cd %SETUPDIR%\bom
|
|
makedisk %LOGFILE% %4cdlay.txt infs %COMPRESS_INFS% %INFS% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt x86bins %COMPRESS_X86BINS% %X86BINS% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt renamed %RENAME_COMPRESSED% %RENAME_UNCOMPRESSED% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt mipsbins %MIPSBINS% %MIPSBINS% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt ppcbins %PPCBINS% %PPCBINS% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt alphabins %ALPHABINS% %ALPHABINS% %FLOPDIR% %7 u N
|
|
makedisk %LOGFILE% %4cdlay.txt tagfiles . . %FLOPDIR% %7 u N
|
|
|
|
if "%COPYDBGFILES%" == "" goto NODBGFILES
|
|
|
|
makedisk %LOGFILE% %4cdlay.txt x86dbg . %X86DBGBINS% . %7\SUPPORT\DEBUG u N
|
|
makedisk %LOGFILE% %4cdlay.txt mipsdbg . %MIPSDBGBINS% . %7\SUPPORT\DEBUG u N
|
|
makedisk %LOGFILE% %4cdlay.txt ppcdbg . %PPCDBGBINS% . %7\SUPPORT\DEBUG u N
|
|
makedisk %LOGFILE% %4cdlay.txt alphadbg . %ALPHADBGBINS% . %7\SUPPORT\DEBUG u N
|
|
|
|
goto skiprem
|
|
rem
|
|
rem Using the SDK column in the retail BOM to indicated whether a
|
|
rem .DBG file exists for each file shipped. Note that there are currently
|
|
rem no binaries that require .DBG files in the renamed category, so there
|
|
rem is currently no makedisk line for renamed category. Special option
|
|
rem for last parameter to makedisk is "D" for debug -- this will cause
|
|
rem the filename to be converted from "foo.dll" to "dll\foo.dbg".
|
|
rem
|
|
:skiprem
|
|
|
|
layout %LOGFILE% %4cdlay.txt %4cddbg.txt sdk 500000000
|
|
makedisk %LOGFILE% %4cddbg.txt x86bins %X86DBGSOURCE% %X86DBGSOURCE% %FLOPDIR% %7%\SUPPORT\DEBUG\I386\SYMBOLS u D
|
|
makedisk %LOGFILE% %4cddbg.txt mipsbins %MIPSDBGSOURCE% %MIPSDBGSOURCE% %FLOPDIR% %7\SUPPORT\DEBUG\MIPS\SYMBOLS u D
|
|
makedisk %LOGFILE% %4cddbg.txt ppcbins %PPCDBGSOURCE% %PPCDBGSOURCE% %FLOPDIR% %7\SUPPORT\DEBUG\PPC\SYMBOLS u D
|
|
makedisk %LOGFILE% %4cddbg.txt alphabins %ALPHADBGSOURCE% %ALPHADBGSOURCE% %FLOPDIR% %7\SUPPORT\DEBUG\ALPHA\SYMBOLS u D
|
|
|
|
:NODBGFILES
|
|
|
|
copy %SETUPDIR%\bom\%LOGFILE% %FLOPDIR%
|
|
|
|
@echo DONE!
|
|
|
|
:END
|
|
|
|
|