lib/scripts/getsettings
author wenzelm
Wed May 14 18:38:15 1997 +0200 (1997-05-14)
changeset 3185 7a6c933d51d0
parent 3118 24dae6222579
child 6413 b2f2770ef8d9
permissions -rw-r--r--
tuned;
wenzelm@2307
     1
#
wenzelm@2307
     2
# $Id$
wenzelm@2299
     3
#
wenzelm@2348
     4
# getsettings - bash source script to augment current env.
wenzelm@2299
     5
#
wenzelm@2299
     6
wenzelm@3185
     7
set -o allexport
wenzelm@3185
     8
wenzelm@2736
     9
#normalize ISABELLE_HOME as passed by caller
wenzelm@2736
    10
ISABELLE_HOME=$(cd $ISABELLE_HOME; echo $PWD)
wenzelm@2736
    11
wenzelm@3185
    12
#main executables
wenzelm@3185
    13
ISABELLE=$ISABELLE_HOME/bin/isabelle
wenzelm@3185
    14
ISATOOL=$ISABELLE_HOME/bin/isatool
wenzelm@2299
    15
wenzelm@2643
    16
#users tend to put strange things in here ...
wenzelm@2621
    17
unset ENV
wenzelm@2621
    18
unset BASH_ENV
wenzelm@2621
    19
wenzelm@2643
    20
#get actual settings
wenzelm@2428
    21
. $ISABELLE_HOME/etc/settings || exit 2
wenzelm@2299
    22
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings
wenzelm@2299
    23
wenzelm@3118
    24
#append ML system to paths
wenzelm@3118
    25
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_SYSTEM"
wenzelm@3118
    26
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_SYSTEM; done)
wenzelm@3118
    27
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :)
wenzelm@3118
    28
wenzelm@2299
    29
set +o allexport