Isabelle
author wenzelm
Fri Jul 03 00:02:07 2009 +0200 (2009-07-03)
changeset 31919 e587a888bab5
child 31920 105bd1abff50
permissions -rwxr-xr-x
Generic Isabelle application wrapper.
wenzelm@31919
     1
#!/usr/bin/env bash
wenzelm@31919
     2
#
wenzelm@31919
     3
# Author: Makarius
wenzelm@31919
     4
#
wenzelm@31919
     5
# Generic Isabelle application wrapper.
wenzelm@31919
     6
wenzelm@31919
     7
if [ -L "$0" ]; then
wenzelm@31919
     8
  TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
wenzelm@31919
     9
  exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
wenzelm@31919
    10
fi
wenzelm@31919
    11
wenzelm@31919
    12
wenzelm@31919
    13
## settings
wenzelm@31919
    14
wenzelm@31919
    15
ISABELLE_HOME="$(cd "$(dirname "$0")"; pwd -P)"
wenzelm@31919
    16
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2
wenzelm@31919
    17
wenzelm@31919
    18
wenzelm@31919
    19
## main
wenzelm@31919
    20
wenzelm@31919
    21
CLASSPATH="$(jvmpath "$CLASSPATH")"
wenzelm@31919
    22
wenzelm@31919
    23
exec "$ISABELLE_JAVA" \
wenzelm@31919
    24
  "-Disabelle.home=$ISABELLE_HOME" \
wenzelm@31919
    25
  -jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"