bin/isabelle_scala_script
author wenzelm
Tue, 09 May 2023 19:35:46 +0200
changeset 78005 006cb47a2700
parent 73705 ac07f6be27ea
permissions -rwxr-xr-x
backed out changeset 4660181c83c9: remove rather pointless timing (1..50ms);

#!/usr/bin/env bash
#
# Author: Makarius
#
# Isabelle/Scala script wrapper.

unset CDPATH

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

PRG="$(basename "$0")"

ISABELLE_HOME="$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd ..; pwd)"
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2


## main

exec "$ISABELLE_TOOL" scala -howtorun:script -nocompdaemon "$@"