home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
gw
/
gwusc2.exe
/
GWPAT2.EXE
/
DOPATCH.BAT
next >
Wrap
DOS Batch File
|
1995-08-29
|
6KB
|
178 lines
@ECHO OFF
REM
REM Make sure all the 'patch kit' files exist
REM
set checkfile=patch.exe
if not exist %checkfile% goto pfilemissing
set checkfile=span.exe
if not exist %checkfile% goto pfilemissing
set checkfile=spanx.exe
if not exist %checkfile% goto pfilemissing
set checkfile=sqp.exe
if not exist %checkfile% goto pfilemissing
set checkfile=kdel.exe
if not exist %checkfile% goto pfilemissing
set checkfile=fixdate2.exe
if not exist %checkfile% goto pfilemissing
set checkfile=dospnset.bat
if not exist %checkfile% goto pfilemissing
set checkfile=ofwin41.bat
if not exist %checkfile% goto pfilemissing
set checkfile=wnusid41.bat
if not exist %checkfile% goto pfilemissing
set checkfile=gwusc2.rtp
if not exist %checkfile% goto pfilemissing
set checkfile=ofwin41.rtp
if not exist %checkfile% goto pfilemissing
set checkfile=wnusid41.rtp
if not exist %checkfile% goto pfilemissing
REM
REM Attempt to verify that a proper domain directory was provided.
REM
if not exist %1\wpoffice\setupwin.exe goto wrongdir
REM
REM Attempt to verify that domain has GroupWise 4.1a installed.
REM
set checkfile=%1\wpoffice\ofwin40\wpof0019.ver
if not exist %checkfile% goto wrongver
set checkfile=%1\wpoffice\ofwin40\ofus0019.ver
if not exist %checkfile% goto wrongver
set checkfile=%1\wpoffice\ofwin40\readme.win
if not exist %checkfile% goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup.dat
if not exist %checkfile% goto wrongver
set checkfile=%1\wpoffice\ofwin40\setupus.exe
if not exist %checkfile% goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\ofwin4
if not exist %checkfile%1.spn goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\ofwin4
if not exist %checkfile%1.s01 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\ofwin4
if not exist %checkfile%1.s02 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\ofwin4
if not exist %checkfile%1.s03 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\ofwin4
if not exist %checkfile%1.s04 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\wnusid
if not exist %checkfile%41.spn goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\wnusid
if not exist %checkfile%41.s01 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\wnusid
if not exist %checkfile%41.s02 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\wnusid
if not exist %checkfile%41.s03 goto wrongver
set checkfile=%1\wpoffice\ofwin40\setup\wnusid
if not exist %checkfile%41.s04 goto wrongver
REM
ECHO !!! Patching files in the domain's WPOFFICE\OFWIN40 directory.
REM
if exist %1\WPOFFICE\OFWIN40\PATCH.ERR del %1\WPOFFICE\OFWIN40\PATCH.ERR
patch -q %1\WPOFFICE\OFWIN40 GWUSC2.RTP
if exist %1\WPOFFICE\OFWIN40\PATCH.ERR goto patcherr
REM -------------------------------------------------
REM Fix files in the OFWIN41 span set.
REM -------------------------------------------------
mkdir tmp
call dospnset %1 OFWIN41
if exist tmp\patch.err goto PATCHERR2
REM -------------------------------------------------
REM Fix files in the WNUSID41 span set.
REM -------------------------------------------------
call dospnset %1 WNUSID41
if exist tmp\patch.err goto PATCHERR2
rmdir tmp
echo *******************************************************
echo *
echo * The patch has finished.
echo *
echo *******************************************************
goto exit
:pfilemissing
echo *******************************************************
echo * The following file required by the patch is missing:
echo *
echo * %checkfile%
echo *
echo * The following files are required to perform the
echo * patch. Please make sure all these files exist in
echo * the current directory before doing the patch.
echo *
echo * patch.exe
echo * span.exe
echo * spanx.exe
echo * sqp.exe
echo * kdel.exe
echo * fixdate2.exe
echo * ofwin41.bat
echo * wnusid41.bat
echo * dospnset.bat
echo * gwusc2.rtp
echo * ofwin41.rtp
echo * wnusid41.rtp
echo *
echo *******************************************************
goto exit
:wrongdir
echo *******************************************************
echo * SETUPWIN.EXE not found in %1\WPOFFICE directory.
echo * Ensure that a correct domain directory was specified
echo * and that Windows GroupWise 4.1a has been installed.
echo *******************************************************
goto exit
:wrongver
echo *******************************************************
echo * The following file was missing from the domain:
echo *
echo * %checkfile%
echo *
echo * Ensure that Windows GroupWise 4.1a has previously
echo * been installed for the domain and that patch #1 has
echo * been applied.
echo *******************************************************
goto exit
:patcherr
echo **************************************************************
echo * A warning or error occurred while attempting to patch files.
echo * The patch will be aborted and original files will be
echo * preserved. Please examine the PATCH.ERR file in the
echo * domain\WPOFFICE\OFWIN40 directory for an explanation
echo * of the patch error encountered. Correct the problem and
echo * retry the patch.
echo **************************************************************
:patcherr2
echo **************************************************************
echo * A patch error occured attempting to patch files in a span
echo * set. The patch has been aborted.
echo * Examine the .\TMP\PATCH.ERR file for an explanation of
echo * the error. Correct the problem and retry the patch.
echo * (It may be necessary to reinstall GroupWise 4.1a to the
echo * domain directory.).
echo **************************************************************
:exit
set checkfile=