3 # Author: Markus Wenzel, TU Muenchen
5 # Isabelle tool wrapper.
8 TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
9 exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
15 PRG="$(basename "$0")"
17 ISABELLE_HOME="$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd ..; pwd)"
18 source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2
21 ## external tool (shell script)
23 if [ "$#" -ge 1 -a "$1" != "-?" ]
27 splitarray ":" "$ISABELLE_TOOLS"; TOOLS=("${SPLITARRAY[@]}")
28 for DIR in "${TOOLS[@]}"
30 TOOL="$DIR/$TOOL_NAME"
34 if [ -f "$TOOL" -a -x "$TOOL" ]; then
44 ## internal tool or usage (Scala)
46 isabelle_admin_build jars || exit $?
48 eval "declare -a JAVA_ARGS=($ISABELLE_TOOL_JAVA_OPTIONS)"
49 exec isabelle java "${JAVA_ARGS[@]}" isabelle.Isabelle_Tool "$@"