lib/scripts/getsettings
author wenzelm
Mon Apr 12 16:20:04 1999 +0200 (1999-04-12)
changeset 6413 b2f2770ef8d9
parent 3185 7a6c933d51d0
child 7770 0497323c1f0b
permissions -rw-r--r--
ML_PLATFORM;
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@6413
    24
#append ML system identifier to paths
wenzelm@6413
    25
if [ -z "$ML_PLATFORM" ]; then
wenzelm@6413
    26
  ML_IDENTIFIER="$ML_SYSTEM"
wenzelm@6413
    27
else
wenzelm@6413
    28
  ML_IDENTIFIER="${ML_SYSTEM}_${ML_PLATFORM}"
wenzelm@6413
    29
fi
wenzelm@6413
    30
ISABELLE_OUTPUT="$ISABELLE_OUTPUT/$ML_IDENTIFIER"
wenzelm@6413
    31
ISABELLE_PATH=$(for DIR in $(echo $ISABELLE_PATH | tr : " "); do echo $DIR/$ML_IDENTIFIER; done)
wenzelm@3118
    32
ISABELLE_PATH=$(echo $ISABELLE_PATH | tr " " :)
wenzelm@3118
    33
wenzelm@2299
    34
set +o allexport