gecko-dev/grendel/dist_src/grendel.sh

19 lines
333 B
Bash
Raw Normal View History

#!/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