lib/scripts/getsettings
author wenzelm
Thu Mar 06 12:30:32 1997 +0100 (1997-03-06)
changeset 2736 476adc742599
parent 2643 a7f469c0ba59
child 2968 8ba30b031f31
permissions -rw-r--r--
added ISABELLE_HOME normalization;
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@2736
     7
#normalize ISABELLE_HOME as passed by caller
wenzelm@2299
     8
export ISABELLE_HOME
wenzelm@2736
     9
ISABELLE_HOME=$(cd $ISABELLE_HOME; echo $PWD)
wenzelm@2736
    10
wenzelm@2299
    11
wenzelm@2299
    12
set -o allexport
wenzelm@2299
    13
wenzelm@2643
    14
#users tend to put strange things in here ...
wenzelm@2621
    15
unset ENV
wenzelm@2621
    16
unset BASH_ENV
wenzelm@2621
    17
wenzelm@2590
    18
#get bash-style platform info -- has to work around some tricky features
wenzelm@2590
    19
unset HOSTTYPE
wenzelm@2590
    20
unset OSTYPE
wenzelm@2621
    21
PLATFORM=$(bash -norc -c 'echo $HOSTTYPE-$OSTYPE')
wenzelm@2590
    22
wenzelm@2643
    23
#get actual settings
wenzelm@2428
    24
. $ISABELLE_HOME/etc/settings || exit 2
wenzelm@2299
    25
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings
wenzelm@2299
    26
wenzelm@2736
    27
#derived values
wenzelm@2478
    28
ISABELLE=$ISABELLE_HOME/bin/isabelle
wenzelm@2478
    29
ISATOOL=$ISABELLE_HOME/bin/isatool
wenzelm@2590
    30
ISABELLE_OUTPUT_DIR="$ISABELLE_OUTPUT/$ML_SYSTEM-$PLATFORM"
wenzelm@2478
    31
wenzelm@2299
    32
set +o allexport