From 63cd2b169354de68ab878b53a043d5b9efa75183 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 13 Aug 2008 12:29:03 +0000 Subject: Client: Wrote loader script Because the Client is written in Java, it cannot be run from any directory regardless of path easily. So, with the addition of a loader script that calls the Java JAR, the command "instadisc" can still be run from any directory. --- client/trunk/packaging/instadisc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 client/trunk/packaging/instadisc diff --git a/client/trunk/packaging/instadisc b/client/trunk/packaging/instadisc new file mode 100755 index 0000000..8b8a420 --- /dev/null +++ b/client/trunk/packaging/instadisc @@ -0,0 +1,20 @@ +#!/bin/sh +# InstaDisc Client Loader +# +# Copyright 2008 Four Island + +PRG=$0 + +while [ -h "$PRG" ]; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` + if expr "$link" : '^/' 2> /dev/null >/dev/null; then + PRG="$link" + else + PRG="`dirname "$PRG"`/$link" + fi +done + +progdir=`dirname "$PRG"` + +java -jar "$progdir/InstaDisc.jar" $* -- cgit 1.4.1