#!/bin/sh -e ## JFLAP v7 DEPS=java-1.8.0-openjdk PROG=JFLAP FILE=JFLAP.jar FILE_URL=http://www.jflap.org/jflaptmp/may15-2011/withoutSource/JFLAP.jar PROG_NAME=jflap ICON_URL=http://jflap.org/jflapLogo2.jpg # Check that the current user is root if [ $EUID != 0 ] then echo "Please run this script as root (sudo $@$0)." exit fi # Install dependencies dnf install $DEPS -y # Make the dirs mkdir -p /usr/local/$PROG # Get the files curl -o /usr/local/$PROG/$FILE $FILE_URL # Make a link cat > /usr/local/bin/$PROG_NAME < /usr/local/share/applications/$PROG.desktop <