lib/Tools/console
author paulson <lp15@cam.ac.uk>
Tue, 30 Apr 2019 15:49:15 +0100
changeset 70218 e48c0b5897a6
parent 66906 03a96b8c7c06
child 71373 201486ced92d
permissions -rwxr-xr-x
more de-applying

#!/usr/bin/env bash
#
# Author: Makarius
#
# DESCRIPTION: raw ML process (interactive mode)

isabelle_admin_build jars || exit $?

eval "declare -a JAVA_ARGS=($ISABELLE_TOOL_JAVA_OPTIONS)"

mkdir -p "$ISABELLE_TMP_PREFIX" || exit $?

if type -p "$ISABELLE_LINE_EDITOR" > /dev/null
then
  exec "$ISABELLE_LINE_EDITOR" isabelle java "${JAVA_ARGS[@]}" isabelle.ML_Console "$@"
else
  echo "### No line editor: \"$ISABELLE_LINE_EDITOR\""
  exec isabelle java "${JAVA_ARGS[@]}" isabelle.ML_Console "$@"
fi