@echo off  
REM     ADDICTED TO BLOOD v3.1 INSTALLATION MS-DOS SCRIPT.
REM
REM To play, invoke this script while all required files are 
REM present in the same directory as it.
REM
cls 
echo           
echo                       ADDICTED TO BLOOD v3.1                
echo                     MS-DOS installation script              
echo          
rem
rem check for required files.
rem
if not exist DOOM2.EXE     goto     D_EXE_MISSING
if not exist DOOM2.WAD     goto     D_WAD_MISSING
if not exist ATB.WAD       goto     A_WAD_MISSING
if not exist SPRITES.WAD   goto     S_WAD_MISSING
if not exist DEUSF.EXE     goto     DEUSF_MISSING
goto ALL_FILES_PRESENT

:ALL_FILES_PRESENT

echo                         Now installing sprites....
rem
rem Please do not edit Copyright notice.... thanx - jeff.
rem
echo.
echo DeuSF V3.1 Copyright (c)1994 Olivier Montanuy (montanuy@dmi.ens.fr)
echo.
echo Derived from DEU 5.21 by Brendon Wyber and Raphael Quinet, and ideas from
echo DMADDS by Bernd Kreimeier, DMAUD DMGRAPH DMMUS by Bill Neisius.
echo Ported to Unix, OS/2 (by Mark Mathews), Linux (by Per Allansson)
echo Silicon Graphics and Alpha (by James Bonfield). What more?
echo Thanks to Steve McCrea, Elias Papavassilopoulos and Keith Wilkins,
echo Matt Fell for the DOOM specs... and IDsoftware for the implementation!
echo DeuSF is freeware. It should be available to you for free.
echo Selling, lending or leasing this software is not permitted.
rem
rem end of copyright notice.
rem
if exist ATB_fx.wad erase ATB_fx.wad
deusf -sprite -add sprites.wad ATB_fx.wad > ATB_LOG.LOG

:NO_ERRORS

echo.
echo              SPRITES installed.  ATB_fx.wad should be 4.68 meg. 
echo.

if exist atb.bat erase atb.bat
echo doom2 -file atb_fx.wad atb.wad > atb.bat

echo         
echo                  ATB v3.1 Installation normal exit.         
echo                  Try typing "ATB" to play...                
echo           
echo.

goto END_ATB_INSTALL

rem
rem missing file error handlers...
rem

:D_EXE_MISSING

echo.
echo      ============== !!! INSTALLATION FAILED !!! ===============       
echo.
echo          Can't find DOOM2.EXE in current directory
echo.
echo      ==========================================================                 

goto END_ATB_INSTALL

:D_WAD_MISSING

echo.
echo     ============== !!! INSTALLATION FAILED !!! ===============       
echo.
echo          Can't find DOOM2.WAD in current directory
echo.
echo     ==========================================================                 

goto END_ATB_INSTALL

:A_WAD_MISSING

echo.
echo     ============== !!! INSTALLATION FAILED !!! ===============       
echo.
echo          Can't find ATB.WAD in current directory
echo.
echo     ==========================================================                 

goto END_ATB_INSTALL

:S_WAD_MISSING

echo.
echo     ============== !!! INSTALLATION FAILED !!! ===============       
echo.
echo          Can't find SPRITES.WAD in current directory
echo.
echo     ==========================================================                 

goto END_ATB_INSTALL

:DEUSF_MISSING

echo.
echo     ============== !!! INSTALLATION FAILED !!! ===============       
echo.
echo          Can't find DEUSF.EXE in current directory
echo.
echo     ==========================================================                 

goto END_ATB_INSTALL

:END_ATB_INSTALL

