From 8534bfed8b89b5185c541e17a750d5880b483042 Mon Sep 17 00:00:00 2001 From: axk4545 Date: Mon, 17 Apr 2017 16:36:37 -0400 Subject: [PATCH 1/2] add gitk and plantuml to postinstall and remove scripts --- scripts/postinstall | 4 ++-- scripts/removal | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) mode change 100755 => 100644 scripts/removal diff --git a/scripts/postinstall b/scripts/postinstall index f60e024..f69ddbd 100644 --- a/scripts/postinstall +++ b/scripts/postinstall @@ -75,7 +75,7 @@ do ;; "SE") echo -e "Welcome to the TigerOS SE package installer script.\n - This script will install ruby, eclipse, Spin, sqlite3 and MIT Alloy on you machine." + This script will install ruby, eclipse, Spin, sqlite3, plantUML, gitk and MIT Alloy on you machine." while true; do read -p "Do you wish to continue? [y/n] " yn case $yn in @@ -83,7 +83,7 @@ do [Nn]* ) exit;; esac done - dnf install -y eclipse-jdt ruby sqlite + dnf install -y eclipse-jdt ruby sqlite plantuml gitk geany ./se/spin.sh && ./se/alloy.sh echo "Install finished" exit diff --git a/scripts/removal b/scripts/removal old mode 100755 new mode 100644 index 66ca3e4..f1b3c96 --- a/scripts/removal +++ b/scripts/removal @@ -73,7 +73,7 @@ do [Nn]* ) exit;; esac done - sudo dnf -y remove eclipse-jdt ruby sqlite + sudo dnf -y remove eclipse-jdt ruby sqlite gitk plantuml # Spin and Alloy need to be implemented in installer script before removal. echo "All files have been removed." exit From f7e7bb8f7e543a404d3b8eda889da6439b32cba8 Mon Sep 17 00:00:00 2001 From: axk4545 Date: Mon, 17 Apr 2017 17:55:43 -0400 Subject: [PATCH 2/2] implement linuxmodders suggestions and create logisim script --- scripts/cs/logisim.sh | 68 +++++++++++++++++++++++++++++++++++++++++++ scripts/postinstall | 8 +++-- 2 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 scripts/cs/logisim.sh diff --git a/scripts/cs/logisim.sh b/scripts/cs/logisim.sh new file mode 100644 index 0000000..be9f269 --- /dev/null +++ b/scripts/cs/logisim.sh @@ -0,0 +1,68 @@ +#!/bin/sh -e + +# JFLAP installer script for TigerOS +# author: Josh Bicking + +DEPS=java-1.8.0-openjdk +PROG=Logisim +FILE=/usr/share/java/logisim.jar +FILE_URL=https://sourceforge.net/projects/circuit/files/2.3.x/2.3.1/logisim-2.3.1.jar/download +LINK=/usr/local/bin/logisim +ICON_URL=https://upload.wikimedia.org/wikipedia/commons/thumb/b/ba/Logisim-icon.svg/48px-Logisim-icon.svg.png + + +# Check that the current user is root +if [ $EUID != 0 ] +then + echo "Please run this script as root (sudo $@$0)." + exit +fi + +## Removal +# Check if remove flag was passed +if [ ! -z "$1" ] && [ "$1" = "--remove" ] + then + + rm $LINK + rm /usr/local/share/applications/$PROG.desktop + rm $FILE + rm /usr/local/share/icons/$PROG.jpg + +else + + ## Installation + # Install dependencies + dnf install $DEPS -y + + # Get the files + curl -o $FILE $FILE_URL + + # Make a link + cat > $LINK < /usr/local/share/applications/$PROG.desktop <