bin/isabelle
author wenzelm
Mon, 24 Mar 2008 18:35:40 +0100
changeset 26376 1aeabd85866a
parent 15967 f9163c6f69d6
child 28504 7ad7d7d6df47
permissions -rwxr-xr-x
added ML-Systems/polyml-5.1.ML, ML-Systems/polyml_old_compiler4.ML, ML-Systems/polyml_old_compiler5.ML;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10555
2323ec838401 /usr/bin/env bash;
wenzelm
parents: 10511
diff changeset
     1
#!/usr/bin/env bash
2292
c1c5652600f1 isabelle: Basic Isabelle startup script.
wenzelm
parents:
diff changeset
     2
#
2308
641be5ad47af improved 'not found' messages;
wenzelm
parents: 2292
diff changeset
     3
# $Id$
9786
wenzelm
parents: 8359
diff changeset
     4
# Author: Markus Wenzel, TU Muenchen
2308
641be5ad47af improved 'not found' messages;
wenzelm
parents: 2292
diff changeset
     5
#
11550
915c5de6480f smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents: 10905
diff changeset
     6
# Smart selection of isabelle-process versus isabelle-interface.
2292
c1c5652600f1 isabelle: Basic Isabelle startup script.
wenzelm
parents:
diff changeset
     7
15843
d5bd4a18ce70 improved handling of symlinks;
wenzelm
parents: 15784
diff changeset
     8
if [ -L "$0" ]; then
d5bd4a18ce70 improved handling of symlinks;
wenzelm
parents: 15784
diff changeset
     9
  TARGET="$(LC_ALL=C ls -l "$0" | sed 's/.* -> //')"
15967
f9163c6f69d6 proper treatment of directory links;
wenzelm
parents: 15864
diff changeset
    10
  exec "$(cd "$(dirname "$0")"; cd "$(pwd -P)"; cd "$(dirname "$TARGET")"; pwd)/$(basename "$TARGET")" "$@"
15843
d5bd4a18ce70 improved handling of symlinks;
wenzelm
parents: 15784
diff changeset
    11
fi
d5bd4a18ce70 improved handling of symlinks;
wenzelm
parents: 15784
diff changeset
    12
15967
f9163c6f69d6 proper treatment of directory links;
wenzelm
parents: 15864
diff changeset
    13
THIS=$(cd "$(dirname "$0")"; pwd -P)
11550
915c5de6480f smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents: 10905
diff changeset
    14
NAME="$(basename "$0")"
2292
c1c5652600f1 isabelle: Basic Isabelle startup script.
wenzelm
parents:
diff changeset
    15
11566
wenzelm
parents: 11550
diff changeset
    16
case "$NAME" in
wenzelm
parents: 11550
diff changeset
    17
  I*)
wenzelm
parents: 11550
diff changeset
    18
    PRG=isabelle-interface
wenzelm
parents: 11550
diff changeset
    19
    ;;
wenzelm
parents: 11550
diff changeset
    20
  i*)
wenzelm
parents: 11550
diff changeset
    21
    PRG=isabelle-process
wenzelm
parents: 11550
diff changeset
    22
    ;;
wenzelm
parents: 11550
diff changeset
    23
esac
9786
wenzelm
parents: 8359
diff changeset
    24
11550
915c5de6480f smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents: 10905
diff changeset
    25
exec "$THIS/$PRG" "$@"