home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
c't freeware shareware 2001 January
/
CT_SW0101.ISO
/
pc
/
software
/
spiele
/
strat
/
bbots.tgz
/
battlebots-1.0.2-static.tar
/
install
< prev
next >
Wrap
Text File
|
2001-03-18
|
3KB
|
65 lines
#!/bin/sh
PATH=/usr/bin:/bin; export PATH
if test -w /usr/local/battlebots
then
#Copy files to this dir
cp BUGS current.cfg heavy.cfg INSTALL light.cfg medium.cfg README ultralight.cfg /usr/local/battlebots
else
if test -d /usr/local/battlebots
then
echo Sorry, cant write to /usr/local/battlebots
exit -1
else
if test -w /usr/local
then
mkdir /usr/local/battlebots
#Copy files to this dir
cp BUGS current.cfg heavy.cfg INSTALL light.cfg medium.cfg README ultralight.cfg /usr/local/battlebots
else
echo Sorry, cant create /usr/local/battlebots
exit -1
fi
fi
fi
if test -d /usr/local/battlebots/bots
then
cp teamtracker.basm tracker.basm example1.basm /usr/local/battlebots/bots/
else
mkdir /usr/local/battlebots/bots
cp teamtracker.basm tracker.basm example1.basm /usr/local/battlebots/bots/
fi
if test -d /usr/local/battlebots/doc
then
cp AUTHORS ChangeLog COPYING TODO index.html index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index-7.html index-8.html index-9.html index-10.html index-11.html index-12.html index-13.html index-14.html /usr/local/battlebots/doc
else
mkdir /usr/local/battlebots/doc
cp AUTHORS ChangeLog COPYING TODO index.html index-1.html index-2.html index-3.html index-4.html index-5.html index-6.html index-7.html index-8.html index-9.html index-10.html index-11.html index-12.html index-13.html index-14.html /usr/local/battlebots/doc
fi
if test -d /usr/local/battlebots/pixmaps
then
cp mainmenu.png metal.png metalback2.png backbutton.xpm chaff.bmp mine.xpm missile.xpm radarmissile.bmp skepp0.bmp skepp1.bmp skepp2.bmp skepp3.bmp skepp4.bmp skepp5.bmp skepp6.bmp skepp7.bmp /usr/local/battlebots/pixmaps
else
mkdir /usr/local/battlebots/pixmaps
cp mainmenu.png metal.png metalback2.png backbutton.xpm chaff.bmp mine.xpm missile.xpm radarmissile.bmp skepp0.bmp skepp1.bmp skepp2.bmp skepp3.bmp skepp4.bmp skepp5.bmp skepp6.bmp skepp7.bmp /usr/local/battlebots/pixmaps
fi
if test -d /usr/local/bin
then
cp battlebots /usr/local/bin/battlebots
else
mkdir /usr/local/bin
cp battlebots /usr/local/bin/battlebots
fi
cp battlebots.conf /etc/battlebots.conf
echo Installation complete
exit 0