2018-06-11 15:23:04 -04:00
|
|
|
#!/bin/sh
|
|
|
|
PRG="$0"
|
|
|
|
|
|
|
|
# resolve relative symlinks
|
|
|
|
while [ -h "$PRG" ] ; do
|
|
|
|
ls=`ls -ld "$PRG"`
|
|
|
|
link=`expr "$ls" : '.*-> \(.*\)$'`
|
|
|
|
if expr "$link" : '/.*' > /dev/null; then
|
|
|
|
PRG="$link"
|
|
|
|
else
|
|
|
|
PRG="`dirname "$PRG"`/$link"
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
# get canonical path
|
|
|
|
BIN=`dirname "$PRG"`
|
2018-06-21 03:09:59 -04:00
|
|
|
FILEBOT_HOME=`cd "$BIN/.." && pwd`
|
2018-06-11 15:23:04 -04:00
|
|
|
|
2018-06-21 03:09:59 -04:00
|
|
|
JAVA_HOME="$FILEBOT_HOME/PlugIns/jre-@{java.version}.jre/Contents/Home"
|
|
|
|
LIBRARY_PATH="$FILEBOT_HOME/MacOS"
|
2018-06-12 09:22:21 -04:00
|
|
|
|
2018-06-21 03:09:59 -04:00
|
|
|
# start filebot
|
|
|
|
"$JAVA_HOME/bin/java" -Dapplication.deployment=app -Dapple.awt.UIElement=true -Dnet.filebot.AcoustID.fpcalc="$LIBRARY_PATH/fpcalc" @{java.application.options} @{linux.application.options} $JAVA_OPTS $FILEBOT_OPTS -classpath "$FILEBOT_HOME/Java/*" @{main.class} "$@"
|