lib/scripts/getsettings
author oheimb
Tue, 07 Apr 1998 13:46:05 +0200
changeset 4800 97c3a45d092b
parent 3185 7a6c933d51d0
child 6413 b2f2770ef8d9
permissions -rw-r--r--
replaced option_map_SomeD by option_map_eq_Some (RS iffD1) added option_map_eq_Some to simpset(), option_map_eq_Some RS iffD1 to claset()

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

set -o allexport

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

#main executables
ISABELLE=$ISABELLE_HOME/bin/isabelle
ISATOOL=$ISABELLE_HOME/bin/isatool

#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

#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