mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 17:22:04 +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
|