install.sh 521 B

1234567891011121314151617181920212223242526
  1. #!/bin/bash
  2. echo "xStoneAge Installer v0.0b"
  3. echo ""
  4. if [ `whoami` != root ]
  5. then
  6. echo "Please run install script as root."
  7. exit
  8. fi
  9. echo -n "Creating directories... "
  10. mkdir /var/games/xstoneage
  11. chmod 777 /var/games/xstoneage
  12. mkdir /usr/lib/xstoneage
  13. chmod 777 /usr/lib/xstoneage
  14. echo "OK."
  15. echo -n "Copying files... "
  16. cp xstoneage /usr/bin
  17. chmod 755 /usr/bin/xstoneage
  18. cp stoneage.pak /usr/lib/xstoneage
  19. chmod 444 /usr/lib/xstoneage/stoneage.pak
  20. cp xstoneage.6 /usr/share/man/man6
  21. echo "OK."
  22. echo "Installed."