- #/bin/sh
- #This script was created by John coghill <Liberion> (liberion@gmail.com).
- #This is distrbuted under the Q public license all rights reserved.
- #The package is built from standard linux binary tarball,no modifications
- #to the code have been made.
- #The amanith library uses Q-Public license
- #so if you desire the amanith sourcecode it can be found at
- #www.amamith.org
- #if you desire the sourcecode to FretsOnFire uncomment the line below
- #wget http://louhi.kempele.fi/~skyostil/uv/fretsonfire/dist/FretsOnFire-src-1.1.324.tar.gz
- #created 12/22
- #YOU MUST BE ROOT TO RUN THIS SCRIPT!IT ALSO REQUIRES SDL!
- #If you are using Ubuntu start the script by
- #sudo sh FretsOnFire-universal-install.sh
- #last revised 07/30
- clear
- echo "What is the version number of the linux binary package to be"
- echo "downloaded?The current version number as of 12/22/2006"
- echo "is 1.2.451"
- echo "Please enter version number you want."
- read vn
- buildir=$(pwd)
- #now we need to download the FretsonFire Linux binary
- cd $buildir
- wget http://downloads.sourceforge.net/fretsonfire/FretsOnFire-1.2.451-linux.tar.gz?use_mirror=osdn
- #Now we extract the tarball in the pwd.
- tar xzvf $buildir/FretsOnFire-$vn-linux.tar.gz
- #Now we need to move the FretsOnFire ,and other things.
- mkdir -p /usr/share/FretsOnFire
- cd $buildir
- cp -R FretsOnFire/* /usr/share/FretsOnFire
- #Now we need to build a specific script that will run as a binary in
- #/usr/bin
- cat <<EOF > /usr/bin/FretsOnFire
- #!/bin/sh
- export LD_LIBRARY_PATH=/usr/share/FretsOnFire
- cd /usr/share/FretsOnFire
- exec /usr/share/FretsOnFire/FretsOnFire.bin $@
- EOF
- #now we need to make the script executable
- chmod +x /usr/bin/FretsOnFire
- #We will now make a script to remove FretsOnFire
- cat <<EOF > /usr/bin/Remove-fretsonfire
- rm -r /usr/share/FretsOnFire
- rm -f /usr/bin/FretsOnFire
- rm -f /usr/share/applications/fretsonfire.desktop
- rm -f /usr/bin/Remove-fretsonfire
- cd /usr/share -rf FretsONFire
- EOF
- chmod +x /usr/bin/Remove-fretsonfire
- #now we remove Junk from our pwd.
- rm -r FretsOnFire-$vn-linux.tar.gz
- rm -r $buildir/FretsOnFire
- #now we need to create a desktop file
- cat <<EOF > /usr/share/applications/fretsonfire.desktop
- [Desktop Entry]
- Encoding=UTF-8
- Name=FretsOnFire
- GenericName=A Fantastic Guitar Game.
- Exec=/usr/bin/FretsOnFire
- StartupWMClass=FretsOnFire
- Icon=/usr/share/FretsOnFire/data/icon.png
- Type=Application;Game
- EOF
- echo "FretsOnFire is now Installed!"
- echo "If you decide to upgrade, or remove either"
- echo "way you must remove the old FretsonFire."
- echo "You do this by running as root user Remove-fretsonfire"
- echo "if using Ubuntu you would simply"
- echo "sudo /usr/bin/Remove-fretsonfire."
- echo "Special thanks goes to my cousin Jennnifer Gloyd,"
- echo "Jothan Vincent,and Michael Graham."
- echo "I have them as the inspiration on building this"
- echo "script.They are guitar afficianodos players!"
- echo "Happy Gaming,and let me know how you like it"
- echo "emails are welcome at liberion@gmail.com"
- echo "thanx!!"