lib/scripts/getsettings
author wenzelm
Tue, 06 May 1997 15:27:35 +0200
changeset 3118 24dae6222579
parent 2968 8ba30b031f31
child 3185 7a6c933d51d0
permissions -rw-r--r--
fixed ISABELLE_OUTPUT, ISABELLE_PATH (finally?);

#
# $Id$
#
# getsettings - bash source script to augment current env.
#

#normalize ISABELLE_HOME as passed by caller
export ISABELLE_HOME
ISABELLE_HOME=$(cd $ISABELLE_HOME; echo $PWD)


set -o allexport

#users tend to put strange things in here ...
unset ENV
unset BASH_ENV

#get actual settings
. $ISABELLE_HOME/etc/settings || exit 2
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings

#derived values
ISABELLE=$ISABELLE_HOME/bin/isabelle
ISATOOL=$ISABELLE_HOME/bin/isatool

#append ML system to paths
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_SYSTEM"
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_SYSTEM; done)
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :)

set +o allexport