2755
|
1 |
#!/bin/bash -norc
|
|
2 |
#
|
|
3 |
# $Id$
|
|
4 |
#
|
|
5 |
# build - compile parts of the Isabelle system
|
|
6 |
|
2789
|
7 |
## args
|
2755
|
8 |
|
2789
|
9 |
LOGICS="$*"
|
2755
|
10 |
|
|
11 |
|
2789
|
12 |
## settings
|
|
13 |
|
|
14 |
PRG=$(basename $0)
|
2755
|
15 |
|
2789
|
16 |
ISABELLE_HOME=$(dirname $0)
|
|
17 |
. $ISABELLE_HOME/lib/scripts/getsettings || \
|
|
18 |
{ echo "$PRG probably not called from its original place!"; exit 2 }
|
2755
|
19 |
|
2789
|
20 |
|
|
21 |
## tell the user about current values
|
2755
|
22 |
|
|
23 |
echo
|
2789
|
24 |
echo "Please check $ISABELLE_HOME/etc/settings"
|
|
25 |
[ -f $ISABELLE_HOME_USER/etc/settings ] && echo "AND $ISABELLE_HOME_USER/etc/settings"
|
2755
|
26 |
echo "to make sure that Isabelle's ML system settings are appropriate."
|
|
27 |
echo "Your current values are:"
|
|
28 |
echo
|
|
29 |
|
2789
|
30 |
echo "ML_SYSTEM=$ML_SYSTEM"
|
|
31 |
echo "ML_HOME=$ML_HOME"
|
|
32 |
echo "ML_OPTIONS=$ML_OPTIONS"
|
|
33 |
|
|
34 |
|
|
35 |
## build it
|
|
36 |
|
|
37 |
LOGICS="Pure $DEFAULT_LOGIC $LOGICS"
|
2755
|
38 |
|
|
39 |
echo
|
2761
|
40 |
echo
|
|
41 |
echo "Press RETURN to start compilation of: $LOGICS"
|
2755
|
42 |
read
|
|
43 |
|
|
44 |
|
2781
|
45 |
export THIS_IS_ISABELLE_BUILD=true
|
2755
|
46 |
|
|
47 |
for DIR in $LOGICS
|
|
48 |
do
|
2789
|
49 |
( cd $ISABELLE_HOME/src/$DIR; $ISATOOL make)
|
2755
|
50 |
done
|