author | wenzelm |
Sat, 01 Jul 2000 19:49:48 +0200 | |
changeset 9227 | 298ae5f69b18 |
parent 7770 | 0497323c1f0b |
child 9680 | 6581bfc8421e |
permissions | -rw-r--r-- |
2307 | 1 |
# |
2 |
# $Id$ |
|
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
3 |
# |
2348 | 4 |
# getsettings - bash source script to augment current env. |
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
5 |
# |
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
6 |
|
7770
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
7 |
if [ -z "$ISABELLE_SETTINGS_PRESENT" ] |
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
8 |
then |
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
9 |
|
3185 | 10 |
set -o allexport |
11 |
||
7770
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
12 |
ISABELLE_SETTINGS_PRESENT=true |
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
13 |
|
2736 | 14 |
#normalize ISABELLE_HOME as passed by caller |
15 |
ISABELLE_HOME=$(cd $ISABELLE_HOME; echo $PWD) |
|
16 |
||
3185 | 17 |
#main executables |
18 |
ISABELLE=$ISABELLE_HOME/bin/isabelle |
|
19 |
ISATOOL=$ISABELLE_HOME/bin/isatool |
|
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
20 |
|
2643 | 21 |
#users tend to put strange things in here ... |
2621 | 22 |
unset ENV |
23 |
unset BASH_ENV |
|
24 |
||
2643 | 25 |
#get actual settings |
2428 | 26 |
. $ISABELLE_HOME/etc/settings || exit 2 |
9227 | 27 |
ISABELLE_SITE_SETTINGS_PRESENT=true |
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
28 |
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings |
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
29 |
|
6413 | 30 |
#append ML system identifier to paths |
31 |
if [ -z "$ML_PLATFORM" ]; then |
|
32 |
ML_IDENTIFIER="$ML_SYSTEM" |
|
33 |
else |
|
34 |
ML_IDENTIFIER="${ML_SYSTEM}_${ML_PLATFORM}" |
|
35 |
fi |
|
36 |
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_IDENTIFIER" |
|
37 |
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_IDENTIFIER; done) |
|
3118 | 38 |
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :) |
39 |
||
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
40 |
set +o allexport |
7770
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
41 |
|
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
42 |
fi |