lib/Tools/console
author wenzelm
Wed, 19 Jul 2023 11:40:00 +0200
changeset 78404 b66b6cc1eb8c
parent 74038 b4f57bfe82e7
permissions -rwxr-xr-x
add option "build_context" in anticipation of AFP entries that require special tricks in Isabelle/ML (NB: system component settings are unavailable in AFP);

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