From 8f34ba8977a80ab4b6abcc6ecbe06db4e3618627 Mon Sep 17 00:00:00 2001 From: Matt C Date: Wed, 20 Oct 2021 14:33:24 -0400 Subject: [PATCH] hhngn fuck make --- Makefile | 7 ------- make.sh | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 7 deletions(-) delete mode 100644 Makefile create mode 100755 make.sh diff --git a/Makefile b/Makefile deleted file mode 100644 index ecefd82..0000000 --- a/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -install: - chmod +x *.sh - cp *.sh /usr/bin - mv /usr/bin/citrine.sh /usr/bin/citrine - mv /usr/bin/citrine.internal.sh /usr/bin/citrine.internal -test: install - citrine \ No newline at end of file diff --git a/make.sh b/make.sh new file mode 100755 index 0000000..7981233 --- /dev/null +++ b/make.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +ins() { + chmod +x *.sh + cp *.sh /usr/bin + mv /usr/bin/citrine.sh /usr/bin/citrine + mv /usr/bin/citrine.internal.sh /usr/bin/citrine.internal +} + +testc() { + citrine +} + +if [[ "$1" == "" ]]; then + echo "./make.sh install - installs citrine" + echo "./make.sh test - (installs) then runs citrine" + exit 1 +fi + +if [[ "$1" == "install" ]]; then + ins +elif [[ "$1" == "test" ]]; then + ins + testc +fi \ No newline at end of file