diff options
Diffstat (limited to 'client/trunk')
-rwxr-xr-x | client/trunk/packaging/instadisc | 20 |
1 files changed, 20 insertions, 0 deletions
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 @@ | |||
1 | #!/bin/sh | ||
2 | # InstaDisc Client Loader | ||
3 | # | ||
4 | # Copyright 2008 Four Island | ||
5 | |||
6 | PRG=$0 | ||
7 | |||
8 | while [ -h "$PRG" ]; do | ||
9 | ls=`ls -ld "$PRG"` | ||
10 | link=`expr "$ls" : '^.*-> \(.*\)$' 2>/dev/null` | ||
11 | if expr "$link" : '^/' 2> /dev/null >/dev/null; then | ||
12 | PRG="$link" | ||
13 | else | ||
14 | PRG="`dirname "$PRG"`/$link" | ||
15 | fi | ||
16 | done | ||
17 | |||
18 | progdir=`dirname "$PRG"` | ||
19 | |||
20 | java -jar "$progdir/InstaDisc.jar" $* | ||