Isabelle
author bulwahn
Mon Nov 23 21:56:07 2009 +0100 (2009-11-23)
changeset 33871 caab5399bb2d
parent 31922 d6f8f3bfe329
child 34282 549969a7f582
permissions -rwxr-xr-x
merged
     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 unset ISABELLE_SETTINGS_PRESENT
    19 
    20 
    21 ## main
    22 
    23 CLASSPATH="$(jvmpath "$CLASSPATH")"
    24 
    25 exec "$ISABELLE_JAVA" \
    26   "-Disabelle.home=$(jvmpath "$ISABELLE_HOME")" \
    27   -jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"