lib/scripts/getsettings
author wenzelm
Fri, 14 Feb 1997 15:13:32 +0100
changeset 2621 e9e491033b54
parent 2590 363b2c37a1b9
child 2643 a7f469c0ba59
permissions -rw-r--r--
globally unset ENV, BASH_ENV;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2307
508d2a233dbc *** empty log message ***
wenzelm
parents: 2299
diff changeset
     1
#
508d2a233dbc *** empty log message ***
wenzelm
parents: 2299
diff changeset
     2
# $Id$
2299
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     3
#
2348
b51e104ecf40 *** empty log message ***
wenzelm
parents: 2307
diff changeset
     4
# getsettings - bash source script to augment current env.
2299
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     5
#
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     6
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     7
#value set by caller
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     8
export ISABELLE_HOME
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
     9
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
    10
set -o allexport
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
    11
2621
e9e491033b54 globally unset ENV, BASH_ENV;
wenzelm
parents: 2590
diff changeset
    12
#users tend to put strange things in here
e9e491033b54 globally unset ENV, BASH_ENV;
wenzelm
parents: 2590
diff changeset
    13
unset ENV
e9e491033b54 globally unset ENV, BASH_ENV;
wenzelm
parents: 2590
diff changeset
    14
unset BASH_ENV
e9e491033b54 globally unset ENV, BASH_ENV;
wenzelm
parents: 2590
diff changeset
    15
2590
363b2c37a1b9 integrated getplatform stuff;
wenzelm
parents: 2478
diff changeset
    16
#get bash-style platform info -- has to work around some tricky features
363b2c37a1b9 integrated getplatform stuff;
wenzelm
parents: 2478
diff changeset
    17
unset HOSTTYPE
363b2c37a1b9 integrated getplatform stuff;
wenzelm
parents: 2478
diff changeset
    18
unset OSTYPE
2621
e9e491033b54 globally unset ENV, BASH_ENV;
wenzelm
parents: 2590
diff changeset
    19
PLATFORM=$(bash -norc -c 'echo $HOSTTYPE-$OSTYPE')
2590
363b2c37a1b9 integrated getplatform stuff;
wenzelm
parents: 2478
diff changeset
    20
2428
853732a26bdd improved error handling;
wenzelm
parents: 2348
diff changeset
    21
. $ISABELLE_HOME/etc/settings || exit 2
2299
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
    22
[ -f $ISABELLE_HOME_USER/etc/settings ] && . $ISABELLE_HOME_USER/etc/settings
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
    23
2478
adbd622bb375 added ISABELLE, ISATOOL;
wenzelm
parents: 2428
diff changeset
    24
ISABELLE=$ISABELLE_HOME/bin/isabelle
adbd622bb375 added ISABELLE, ISATOOL;
wenzelm
parents: 2428
diff changeset
    25
ISATOOL=$ISABELLE_HOME/bin/isatool
2590
363b2c37a1b9 integrated getplatform stuff;
wenzelm
parents: 2478
diff changeset
    26
ISABELLE_OUTPUT_DIR="$ISABELLE_OUTPUT/$ML_SYSTEM-$PLATFORM"
2478
adbd622bb375 added ISABELLE, ISATOOL;
wenzelm
parents: 2428
diff changeset
    27
2299
ed9720047d53 getsettings: bash source script to augment current env.
wenzelm
parents:
diff changeset
    28
set +o allexport