| author | wenzelm |
| Sun, 21 May 2000 14:44:01 +0200 | |
| changeset 8901 | e591fc327675 |
| parent 7770 | 0497323c1f0b |
| child 9227 | 298ae5f69b18 |
| 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 |
|
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
27 |
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings |
|
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
28 |
|
| 6413 | 29 |
#append ML system identifier to paths |
30 |
if [ -z "$ML_PLATFORM" ]; then |
|
31 |
ML_IDENTIFIER="$ML_SYSTEM" |
|
32 |
else |
|
33 |
ML_IDENTIFIER="${ML_SYSTEM}_${ML_PLATFORM}"
|
|
34 |
fi |
|
35 |
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_IDENTIFIER" |
|
36 |
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_IDENTIFIER; done) |
|
| 3118 | 37 |
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :) |
38 |
||
|
2299
ed9720047d53
getsettings: bash source script to augment current env.
wenzelm
parents:
diff
changeset
|
39 |
set +o allexport |
|
7770
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
40 |
|
|
0497323c1f0b
ISABELLE_SETTINGS_PRESENT: avoid multiple invocation;
wenzelm
parents:
6413
diff
changeset
|
41 |
fi |