bin/isabelle
author gagern
Wed, 20 Apr 2005 19:00:30 +0200
changeset 15784 3a214de33d53
parent 15778 98af3693f6b3
child 15843 d5bd4a18ce70
permissions -rwxr-xr-x
removed redundant readlink call
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
15778
98af3693f6b3 Allow symlinks to shell scripts
gagern
parents: 14981
diff changeset
     8
THIS="$0"
98af3693f6b3 Allow symlinks to shell scripts
gagern
parents: 14981
diff changeset
     9
while [ -L "$THIS" ]; do
98af3693f6b3 Allow symlinks to shell scripts
gagern
parents: 14981
diff changeset
    10
    THIS="$(dirname "$THIS")/$(LC_ALL=C ls -l "$THIS" | sed 's/.* -> //')"
98af3693f6b3 Allow symlinks to shell scripts
gagern
parents: 14981
diff changeset
    11
done
15784
3a214de33d53 removed redundant readlink call
gagern
parents: 15778
diff changeset
    12
THIS="$(cd "$(dirname "$THIS")"; pwd)"
11550
915c5de6480f smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents: 10905
diff changeset
    13
NAME="$(basename "$0")"
2292
c1c5652600f1 isabelle: Basic Isabelle startup script.
wenzelm
parents:
diff changeset
    14
11566
wenzelm
parents: 11550
diff changeset
    15
case "$NAME" in
wenzelm
parents: 11550
diff changeset
    16
  I*)
wenzelm
parents: 11550
diff changeset
    17
    PRG=isabelle-interface
wenzelm
parents: 11550
diff changeset
    18
    ;;
wenzelm
parents: 11550
diff changeset
    19
  i*)
wenzelm
parents: 11550
diff changeset
    20
    PRG=isabelle-process
wenzelm
parents: 11550
diff changeset
    21
    ;;
wenzelm
parents: 11550
diff changeset
    22
esac
9786
wenzelm
parents: 8359
diff changeset
    23
11550
915c5de6480f smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents: 10905
diff changeset
    24
exec "$THIS/$PRG" "$@"