bin/isabelle
author paulson
Fri, 29 Apr 2005 18:13:28 +0200
changeset 15890 ff6787d730d5
parent 15864 cc1b4a289321
child 15967 f9163c6f69d6
permissions -rwxr-xr-x
updated PG preview for new thms-containing

#!/usr/bin/env bash
#
# $Id$
# Author: Markus Wenzel, TU Muenchen
#
# Smart selection of isabelle-process versus isabelle-interface.

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

THIS=$(cd "$(dirname "$0")"; pwd)
NAME="$(basename "$0")"

case "$NAME" in
  I*)
    PRG=isabelle-interface
    ;;
  i*)
    PRG=isabelle-process
    ;;
esac

exec "$THIS/$PRG" "$@"