author | wenzelm |
Thu, 21 Apr 2005 22:04:01 +0200 | |
changeset 15802 | fda379c17260 |
parent 15784 | 3a214de33d53 |
child 15843 | d5bd4a18ce70 |
permissions | -rwxr-xr-x |
10555 | 1 |
#!/usr/bin/env bash |
2292 | 2 |
# |
2308 | 3 |
# $Id$ |
9786 | 4 |
# Author: Markus Wenzel, TU Muenchen |
2308 | 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 | 7 |
|
15778 | 8 |
THIS="$0" |
9 |
while [ -L "$THIS" ]; do |
|
10 |
THIS="$(dirname "$THIS")/$(LC_ALL=C ls -l "$THIS" | sed 's/.* -> //')" |
|
11 |
done |
|
15784 | 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 | 14 |
|
11566 | 15 |
case "$NAME" in |
16 |
I*) |
|
17 |
PRG=isabelle-interface |
|
18 |
;; |
|
19 |
i*) |
|
20 |
PRG=isabelle-process |
|
21 |
;; |
|
22 |
esac |
|
9786 | 23 |
|
11550
915c5de6480f
smart selection of isabelle-process versus isabelle-interface;
wenzelm
parents:
10905
diff
changeset
|
24 |
exec "$THIS/$PRG" "$@" |