lib/Tools/console
author wenzelm
Fri, 16 Jul 2021 13:18:54 +0200
changeset 74017 b4e6b82fdb9e
parent 71373 201486ced92d
child 74038 b4f57bfe82e7
permissions -rwxr-xr-x
more direct isabelle_scala_build: always enabled, no "Admin" requirement;

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

isabelle_scala_build || 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 >&2 "### No line editor: \"$ISABELLE_LINE_EDITOR\""
  exec isabelle java "${JAVA_ARGS[@]}" isabelle.ML_Console "$@"
fi