mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-05 00:25:27 +00:00
19 lines
333 B
Bash
19 lines
333 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
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"`
|
||
|
|
||
|
basedir=$progdir
|
||
|
java -cp "$basedir" GrendelLauncher
|