lib/scripts/getsettings
author wenzelm
Mon, 03 Apr 2000 14:02:40 +0200
changeset 8662 f9679ddbc492
parent 7770 0497323c1f0b
child 9227 298ae5f69b18
permissions -rw-r--r--
isapar, isamarkuptext, isamarkuptxt turned into environments;

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

if [ -z "$ISABELLE_SETTINGS_PRESENT" ]
then

set -o allexport

ISABELLE_SETTINGS_PRESENT=true

#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 identifier to paths
if [ -z "$ML_PLATFORM" ]; then
  ML_IDENTIFIER="$ML_SYSTEM"
else
  ML_IDENTIFIER="${ML_SYSTEM}_${ML_PLATFORM}"
fi
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_IDENTIFIER"
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_IDENTIFIER; done)
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :)

set +o allexport

fi