mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-05 08:55:08 -05:00
30 lines
824 B
Bash
Executable File
30 lines
824 B
Bash
Executable File
#!/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"`
|
|
FILEBOT_HOME=`cd "$BIN/.." && pwd`
|
|
|
|
# select application data folder
|
|
APP_DATA="$HOME/.filebot"
|
|
LIBRARY_PATH="$FILEBOT_HOME/MacOS"
|
|
|
|
|
|
#!/bin/sh
|
|
APP_EXE=`readlink /usr/local/bin/filebot`
|
|
APP_ROOT=`dirname "$APP_EXE"`
|
|
|
|
# start filebot
|
|
/usr/libexec/java_home --failfast --version "@{jvm.version}+" --exec 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} "$@"
|