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 >
Text File  |  2001-03-18  |  3KB  |  65 lines

  1. #!/bin/sh
  2. PATH=/usr/bin:/bin; export PATH
  3.  
  4. if test -w /usr/local/battlebots
  5. then
  6.         #Copy files to this dir
  7.         cp BUGS current.cfg heavy.cfg INSTALL light.cfg medium.cfg README ultralight.cfg /usr/local/battlebots
  8.  
  9. else
  10.         if test -d /usr/local/battlebots
  11.         then
  12.                 echo Sorry, cant write to /usr/local/battlebots
  13.                 exit -1
  14.         else
  15.                 if test -w /usr/local
  16.                 then
  17.  
  18.                         mkdir /usr/local/battlebots
  19.                         #Copy files to this dir
  20.                         cp BUGS current.cfg heavy.cfg INSTALL light.cfg medium.cfg README ultralight.cfg /usr/local/battlebots
  21.                 else
  22.  
  23.                         echo Sorry, cant create /usr/local/battlebots
  24.                         exit -1
  25.                 fi
  26.         fi
  27.  
  28. fi
  29.  
  30. if test -d /usr/local/battlebots/bots
  31. then
  32.         cp teamtracker.basm tracker.basm example1.basm /usr/local/battlebots/bots/
  33. else
  34.         mkdir /usr/local/battlebots/bots
  35.         cp teamtracker.basm tracker.basm example1.basm /usr/local/battlebots/bots/
  36. fi
  37.  
  38. if test -d /usr/local/battlebots/doc
  39. then
  40.         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
  41. else
  42.         mkdir /usr/local/battlebots/doc
  43.         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
  44. fi
  45.  
  46. if test -d /usr/local/battlebots/pixmaps
  47. then
  48.         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
  49. else
  50.         mkdir /usr/local/battlebots/pixmaps
  51.         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
  52. fi
  53.  
  54. if test -d /usr/local/bin
  55. then
  56.         cp battlebots /usr/local/bin/battlebots
  57. else
  58.         mkdir /usr/local/bin
  59.         cp battlebots /usr/local/bin/battlebots
  60. fi
  61.  
  62. cp battlebots.conf /etc/battlebots.conf
  63.  
  64. echo Installation complete
  65. exit 0