Isabelle
author Thomas Sewell <tsewell@nicta.com.au>
Fri, 11 Sep 2009 18:03:30 +1000
changeset 32748 887c68b70f7d
parent 31922 d6f8f3bfe329
child 34282 549969a7f582
permissions -rwxr-xr-x
There's no particular reason to duplicate the extension constant's definition under the name "ext_def", and it also prevents you having a field called ext.

#!/usr/bin/env bash
#
# Author: Makarius
#
# Generic Isabelle application wrapper.

if [ -L "$0" ]; then
  TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
  exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
fi


## settings

ISABELLE_HOME="$(cd "$(dirname "$0")"; pwd -P)"
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2

unset ISABELLE_SETTINGS_PRESENT


## main

CLASSPATH="$(jvmpath "$CLASSPATH")"

exec "$ISABELLE_JAVA" \
  "-Disabelle.home=$(jvmpath "$ISABELLE_HOME")" \
  -jar "$(jvmpath "$ISABELLE_HOME/lib/classes/isabelle-scala.jar")" "$@"