| author | wenzelm | 
| Wed, 16 Apr 1997 18:53:36 +0200 | |
| changeset 2967 | 89db5eedecab | 
| parent 2736 | 476adc742599 | 
| child 2968 | 8ba30b031f31 | 
| 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  | 
|
| 2736 | 7  | 
#normalize ISABELLE_HOME as passed by caller  | 
| 
2299
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
8  | 
export ISABELLE_HOME  | 
| 2736 | 9  | 
ISABELLE_HOME=$(cd $ISABELLE_HOME; echo $PWD)  | 
10  | 
||
| 
2299
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
11  | 
|
| 
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
12  | 
set -o allexport  | 
| 
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
13  | 
|
| 2643 | 14  | 
#users tend to put strange things in here ...  | 
| 2621 | 15  | 
unset ENV  | 
16  | 
unset BASH_ENV  | 
|
17  | 
||
| 2590 | 18  | 
#get bash-style platform info -- has to work around some tricky features  | 
19  | 
unset HOSTTYPE  | 
|
20  | 
unset OSTYPE  | 
|
| 2621 | 21  | 
PLATFORM=$(bash -norc -c 'echo $HOSTTYPE-$OSTYPE')  | 
| 2590 | 22  | 
|
| 2643 | 23  | 
#get actual settings  | 
| 2428 | 24  | 
. $ISABELLE_HOME/etc/settings || exit 2  | 
| 
2299
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
25  | 
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings  | 
| 
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
26  | 
|
| 2736 | 27  | 
#derived values  | 
| 2478 | 28  | 
ISABELLE=$ISABELLE_HOME/bin/isabelle  | 
29  | 
ISATOOL=$ISABELLE_HOME/bin/isatool  | 
|
| 2590 | 30  | 
ISABELLE_OUTPUT_DIR="$ISABELLE_OUTPUT/$ML_SYSTEM-$PLATFORM"  | 
| 2478 | 31  | 
|
| 
2299
 
ed9720047d53
getsettings: bash source script to augment current env.
 
wenzelm 
parents:  
diff
changeset
 | 
32  | 
set +o allexport  |