lib/scripts/getsettings
author paulson
Thu, 08 Jul 1999 13:38:41 +0200
changeset 6915 4ab8e31a8421
parent 6413 b2f2770ef8d9
child 7770 0497323c1f0b
permissions -rw-r--r--
Now if_weak_cong is a standard congruence rule

#
# $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 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