31919
|
1 |
#!/usr/bin/env bash
|
|
2 |
#
|
|
3 |
# Author: Makarius
|
|
4 |
#
|
|
5 |
# Generic Isabelle application wrapper.
|
|
6 |
|
|
7 |
if [ -L "$0" ]; then
|
|
8 |
TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
|
|
9 |
exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
|
|
10 |
fi
|
|
11 |
|
|
12 |
|
|
13 |
## settings
|
|
14 |
|
|
15 |
ISABELLE_HOME="$(cd "$(dirname "$0")"; pwd -P)"
|
|
16 |
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2
|
|
17 |
|
31922
|
18 |
unset ISABELLE_SETTINGS_PRESENT
|
|
19 |
|
31919
|
20 |
|
|
21 |
## main
|
|
22 |
|
|
23 |
CLASSPATH="$(jvmpath "$CLASSPATH")"
|
|
24 |
|
|
25 |
exec "$ISABELLE_JAVA" \
|
31920
|
26 |
"-Disabelle.home=$(jvmpath "$ISABELLE_HOME")" \
|
31919
|
27 |
-jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"
|