From c90d10a0a94a75fbae2781f10396fbb914055bcd Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Tue, 27 Apr 2010 18:19:36 +0100 Subject: [PATCH] initial wrapper script --- Makefile | 2 ++ src/sparklepony | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/sparklepony diff --git a/Makefile b/Makefile index a63d1066..30b43d86 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,10 @@ SparklePony.exe : src/SparklePony.cs install: mkdir /usr/share/sparklepony cp src/SparklePony.exe /usr/share/sparklepony + cp src/sparklepony /usr/bin uninstall: + rm /usr/bin/sparklepony rm /usr/share/sparklepony/SparklePony.exe mkdir /usr/share/sparklepony diff --git a/src/sparklepony b/src/sparklepony new file mode 100644 index 00000000..2a194301 --- /dev/null +++ b/src/sparklepony @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ "$1" == "start" ]]; then + mono /usr/share/sparklepony/SparklePony.exe +else + if [[ "$1" == "stop" ]]; then + # Stop SparklePony.exe + else + # Usage + fi +fi