lib/scripts/getsettings
changeset 62416 cb6c4e307b1c
parent 62414 1abd90afe387
child 62588 cd266473b81b
equal deleted inserted replaced
62415:62c03eb38e49 62416:cb6c4e307b1c
     2 #
     2 #
     3 # Author: Makarius
     3 # Author: Makarius
     4 #
     4 #
     5 # Static Isabelle environment for root of process tree.
     5 # Static Isabelle environment for root of process tree.
     6 
     6 
       
     7 export ISABELLE_HOME
       
     8 
       
     9 export BASH_ENV="$ISABELLE_HOME/lib/scripts/getfunctions"
       
    10 source "$BASH_ENV"
       
    11 
       
    12 
     7 if [ -z "$ISABELLE_SETTINGS_PRESENT" ]
    13 if [ -z "$ISABELLE_SETTINGS_PRESENT" ]
     8 then
    14 then
     9 
    15 
    10 export ISABELLE_SETTINGS_PRESENT=true
    16 export ISABELLE_SETTINGS_PRESENT=true
    11 
       
    12 export BASH_ENV="$ISABELLE_HOME/lib/scripts/getfunctions"
       
    13 source "$BASH_ENV"
       
    14 
    17 
    15 set -o allexport
    18 set -o allexport
    16 
    19 
    17 #sane environment defaults (notably on Mac OS X)
    20 #sane environment defaults (notably on Mac OS X)
    18 if [ "$ISABELLE_APP" = true -a -x /usr/libexec/path_helper ]; then
    21 if [ "$ISABELLE_APP" = true -a -x /usr/libexec/path_helper ]; then
    47   ISABELLE_ROOT="$ISABELLE_HOME"
    50   ISABELLE_ROOT="$ISABELLE_HOME"
    48 
    51 
    49   ISABELLE_CLASSPATH="$CLASSPATH"
    52   ISABELLE_CLASSPATH="$CLASSPATH"
    50   unset CLASSPATH
    53   unset CLASSPATH
    51 fi
    54 fi
    52 
       
    53 export ISABELLE_HOME
       
    54 
    55 
    55 #main executables
    56 #main executables
    56 ISABELLE_TOOL="$ISABELLE_HOME/bin/isabelle"
    57 ISABELLE_TOOL="$ISABELLE_HOME/bin/isabelle"
    57 ISABELLE_PROCESS="$ISABELLE_HOME/bin/isabelle_process"
    58 ISABELLE_PROCESS="$ISABELLE_HOME/bin/isabelle_process"
    58 ISABELLE_SCALA_SCRIPT="$ISABELLE_HOME/bin/isabelle_scala_script"
    59 ISABELLE_SCALA_SCRIPT="$ISABELLE_HOME/bin/isabelle_scala_script"