Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
682 B

  1. #!/bin/bash
  2. # Spin install script for TigerOS
  3. # author: Aidan Kahrs <axk4545@rit.edu>
  4. # Check that the current user is root
  5. if [ $EUID != 0 ]
  6. then
  7. echo "Please run this script as root (sudo $@$0)."
  8. exit
  9. fi
  10. # Check if remove flag was passed
  11. if [ ! -z "$1" ] && [ "$1" = "--remove" ]
  12. then
  13. rm /usr/local/bin/spin
  14. rm /usr/local/bin/ispin
  15. else
  16. wget http://spinroot.com/spin/Src/spin646.tar.gz -O /tmp/spin.tar.gz
  17. tar -xvf /tmp/spin.tar.gz
  18. cd /tmp/Spin/Src*
  19. dnf install -y byacc
  20. make
  21. install -p -m 755 spin /usr/local/bin/spin
  22. sed -i 's#BIN=/usr/bin#BIN=/usr/local/bin#g' /tmp/Spin/iSpin/install.sh
  23. dnf install tcl tk
  24. bash /tmp/Spin/iSpin/install.sh
  25. dnf remove byacc