bin/isabelle_scala_script
author wenzelm
Fri Oct 07 18:30:56 2016 +0200 (2016-10-07)
changeset 64089 10d719dbb3ee
parent 52116 abf9fcfa65cf
permissions -rwxr-xr-x
more permissive timing data;
wenzelm@52116
     1
#!/usr/bin/env bash
wenzelm@52116
     2
#
wenzelm@52116
     3
# Author: Makarius
wenzelm@52116
     4
#
wenzelm@52116
     5
# Isabelle/Scala script wrapper.
wenzelm@52116
     6
wenzelm@52116
     7
if [ -L "$0" ]; then
wenzelm@52116
     8
  TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
wenzelm@52116
     9
  exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
wenzelm@52116
    10
fi
wenzelm@52116
    11
wenzelm@52116
    12
wenzelm@52116
    13
## settings
wenzelm@52116
    14
wenzelm@52116
    15
PRG="$(basename "$0")"
wenzelm@52116
    16
wenzelm@52116
    17
ISABELLE_HOME="$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd ..; pwd)"
wenzelm@52116
    18
source "$ISABELLE_HOME/lib/scripts/getsettings" || exit 2
wenzelm@52116
    19
wenzelm@52116
    20
wenzelm@52116
    21
## main
wenzelm@52116
    22
wenzelm@52116
    23
exec "$ISABELLE_TOOL" scala -howtorun:script -nocompdaemon "$@"
wenzelm@52116
    24