build
author paulson
Wed, 02 Apr 1997 15:19:40 +0200
changeset 2867 0aa5a3cd4550
parent 2789 69cf3aea45ee
child 2879 477bfcb022d8
permissions -rwxr-xr-x
Now builds blast_tac
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     1
#!/bin/bash -norc
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     2
#
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     3
# $Id$
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     4
#
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     5
# build - compile parts of the Isabelle system
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     6
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
     7
## args
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
     8
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
     9
LOGICS="$*"
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    10
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    11
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    12
## settings
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    13
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    14
PRG=$(basename $0)
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    15
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    16
ISABELLE_HOME=$(dirname $0)
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    17
. $ISABELLE_HOME/lib/scripts/getsettings || \
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    18
  { echo "$PRG probably not called from its original place!"; exit 2 }
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    19
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    20
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    21
## tell the user about current values
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    22
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    23
echo
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    24
echo "Please check $ISABELLE_HOME/etc/settings"
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    25
[ -f $ISABELLE_HOME_USER/etc/settings ] && echo "AND $ISABELLE_HOME_USER/etc/settings"
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    26
echo "to make sure that Isabelle's ML system settings are appropriate."
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    27
echo "Your current values are:"
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    28
echo
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    29
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    30
echo "ML_SYSTEM=$ML_SYSTEM"
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    31
echo "ML_HOME=$ML_HOME"
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    32
echo "ML_OPTIONS=$ML_OPTIONS"
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    33
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    34
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    35
## build it
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    36
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    37
LOGICS="Pure $DEFAULT_LOGIC $LOGICS"
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    38
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    39
echo
2761
fee689b7d813 tuned comment;
wenzelm
parents: 2755
diff changeset
    40
echo
fee689b7d813 tuned comment;
wenzelm
parents: 2755
diff changeset
    41
echo "Press RETURN to start compilation of: $LOGICS"
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    42
read
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    43
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    44
2781
0d6fcae3ae45 added THIS_IS_ISABELLE_BUILD;
wenzelm
parents: 2775
diff changeset
    45
export THIS_IS_ISABELLE_BUILD=true
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    46
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    47
for DIR in $LOGICS
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    48
do
2789
69cf3aea45ee major tuning;
wenzelm
parents: 2781
diff changeset
    49
  ( cd $ISABELLE_HOME/src/$DIR; $ISATOOL make)
2755
9a7128d9722e build - compile parts of the Isabelle system;
wenzelm
parents:
diff changeset
    50
done