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
26 echo "Usage: $PRG NAME [ARGS ...]"
28 echo " Start Isabelle tool NAME with ARGS; pass \"-?\" for tool specific help."
30 echo " Available tools are:"
31 perl -w "$ISABELLE_HOME/lib/scripts/tools.pl"
44 [ "$#" -lt 1 -o "$1" = "-?" ] && usage
52 splitarray ":" "$ISABELLE_TOOLS"; TOOLS=("${SPLITARRAY[@]}")
54 for DIR in "${TOOLS[@]}"
59 *) [ -f "$TOOL" -a -x "$TOOL" ] && exec "$TOOL" "$@" ;;
63 fail "Unknown Isabelle tool: $TOOLNAME"