Isabelle
author wenzelm
Fri, 03 Jul 2009 00:02:07 +0200
changeset 31919 e587a888bab5
child 31920 105bd1abff50
permissions -rwxr-xr-x
Generic Isabelle application wrapper.

#!/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


## main

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

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