#!/bin/sh
###########################################
#This script was written by rob newland #
#and is free (as in speech) for all uses. #
#it may be modified or have anything done #
#to it as long as this notice remains. #
# Contact:
[email protected] #
# Or : Find me on USALUG.org :D under #
#the username crudball. #
###########################################
######################################
# #
#configure this bit #
user="rob" #
cdlocation="/mnt/cdrom" #
#end of config section #
# #
######################################
echo
echo hello $user, welcome to my doom3 installation script for linux....
echo "
______________________ ____ ______
/ _ / _ / _ / \ / \ |____ |
/ /_/ / |_| / |_| / /\ \/ /\ \ ___| |
/_____/_____/_____/__/ \____/ \__\ |___| |
___| |
Press enter to start |______| "
read -p "" pie
echo making appropriate directories...
cd /home/$user/
mkdir doom3 && cd doom3 && mkdir base && cd base
echo please insert your doom 3 cd1
eject $cdlocation
read -p "Press enter when ready..." pie
echo going into the doom3 cd1 files directory....
mount $cdlocation
sleep .5
cd $cdlocation/Setup/Data/base
echo copying the pk4 files
cp game00.pk4 /home/$user/doom3/base
cd $cdlocation/Setup/Data/base
cp pak002.pk4 /home/$user/doom3/base
echo finshed
echo please eject cd1 and insert cd2
read -p "Press enter when ready..." pie
echo going into doom3 cd directory
mount $cdlocation
sleep .5
cd $cdlocation/Setup/Data/base
echo copying the .pk4 files...
cp pak000.pk4 /home/$user/doom3/base
cd $cdlocation/Setup/Data/base
cp pak001.pk4 /home/$user/doom3/base/
echo please eject cd2 and insert cd3
read -p "Press enter when ready..." pie
echo changing directory to the doom3 cd
mount $cdlocation
sleep .5
cd $cdlocation/Setup/Data/base/
echo copying the .pk4 files
cp pak003.pk4 /home/$user/doom3/base/
cd $cdlocation/Setup/Data/base
cp pak004.pk4 /home/$user/doom3/base/
echo ok ejecting cd3
eject $cdlocation
echo downloading the appropriate .run installer from the internet
cd /home/$user/doom3
wget http://www.freewebs.com/doom3onlinux/doom3-linux-1.3.1302.x86.run
echo ...ok now launching setup,bye bye $user...
sh doom3-linux-1.3.1302.x86.run