Isabelle
author wenzelm
Fri Jul 03 00:06:40 2009 +0200 (2009-07-03)
changeset 31920 105bd1abff50
parent 31919 e587a888bab5
child 31922 d6f8f3bfe329
permissions -rwxr-xr-x
isabelle.home: native jvmpath;
     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 
    18 
    19 ## main
    20 
    21 CLASSPATH="$(jvmpath "$CLASSPATH")"
    22 
    23 exec "$ISABELLE_JAVA" \
    24   "-Disabelle.home=$(jvmpath "$ISABELLE_HOME")" \
    25   -jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"