author | paulson |
Thu, 21 Nov 1996 16:04:27 +0100 | |
changeset 2216 | 9b080867c7b1 |
parent 2127 | 33f3d40145e8 |
child 2245 | e34ddc74a2b4 |
permissions | -rwxr-xr-x |
0 | 1 |
#! /bin/sh |
820 | 2 |
# $Id$ |
3 |
#Make all systems afresh |
|
0 | 4 |
|
5 |
# Creates gzipped log files called makeNNNN.log.gz on each subdirectory and |
|
6 |
# displays the last few lines of these files -- this indicates whether |
|
7 |
# the "make" failed (whether it terminated due to an error) |
|
8 |
||
9 |
# switches are |
|
10 |
# -noforce don't delete old databases/images first |
|
11 |
# -clean delete databases/images after use (leaving Pure) |
|
12 |
# -notest make databases/images w/o running the examples |
|
13 |
# -noexec don't execute, just check settings and Makefiles |
|
14 |
||
15 |
#Environment variables required: |
|
16 |
# ISABELLEBIN: the directory to hold Poly/ML databases or New Jersey ML images |
|
17 |
# ISABELLECOMP: the ML compiler |
|
18 |
||
19 |
# A typical shell script for /bin/sh is... |
|
20 |
# ML_DBASE=/usr/groups/theory/poly2.04/`arch`/ML_dbase |
|
21 |
# ISABELLEBIN=/homes/`whoami`/bin |
|
2127 | 22 |
# ISABELLECOMP="/usr/bin/poly -noDisplay" |
0 | 23 |
# export ML_DBASE ISABELLEBIN ISABELLECOMP |
24 |
# nohup make-all $* |
|
25 |
||
26 |
set -e #fail immediately upon errors |
|
27 |
||
28 |
# process command line switches |
|
29 |
CLEAN="off"; |
|
30 |
FORCE="on"; |
|
31 |
TEST="test"; |
|
32 |
EXEC="on"; |
|
33 |
NO=""; |
|
34 |
for A in $* |
|
35 |
do |
|
36 |
case $A in |
|
37 |
-clean) CLEAN="on" ;; |
|
38 |
-noforce) FORCE="off" ;; |
|
39 |
-notest) TEST="" ;; |
|
40 |
-noexec) EXEC="off" |
|
41 |
NO="-n" ;; |
|
42 |
*) echo "Bad flag for make-all: $A" |
|
43 |
echo "Usage: make-all [-noforce] [-clean] [-notest] [-noexec]" |
|
44 |
exit ;; |
|
45 |
esac |
|
46 |
done |
|
47 |
||
48 |
echo Started at `date` |
|
49 |
echo Source=`pwd` |
|
50 |
echo Destination=${ISABELLEBIN?'No destination directory specified'} |
|
51 |
echo force=$FORCE ' ' clean=$CLEAN ' ' |
|
52 |
echo Compiler=${ISABELLECOMP?'No compiler specified'} |
|
53 |
echo Running on `hostname` |
|
54 |
echo Log files will be called make$$.log.gz |
|
2216 | 55 |
case $TEST in |
56 |
test) echo; echo ' **** Full test: WILL TAKE MANY HOURS ****' |
|
57 |
echo ' **** Consider the -notest switch ****' |
|
58 |
esac |
|
59 |
||
0 | 60 |
|
61 |
case $FORCE.$EXEC in |
|
1482 | 62 |
on.on) (cd $ISABELLEBIN; |
2092 | 63 |
for f in Pure FOL ZF CCL LCF CTT Sequents HOL HOLCF Cube FOLP |
1482 | 64 |
do |
65 |
rm -f $f $f.heap |
|
66 |
done) |
|
0 | 67 |
esac |
68 |
||
9
c1795fac88c3
make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
0
diff
changeset
|
69 |
set +e #no longer fail upon errors -- e.g. if a "make" fails |
c1795fac88c3
make-all now has set +e so that New Jersey runs will continue even if some
lcp
parents:
0
diff
changeset
|
70 |
|
0 | 71 |
echo |
72 |
echo |
|
73 |
echo '*****Pure Isabelle*****' |
|
74 |
(cd Pure; make $NO > make$$.log) |
|
75 |
tail Pure/make$$.log |
|
76 |
gzip Pure/make$$.log |
|
77 |
||
78 |
echo |
|
79 |
echo |
|
80 |
echo '*****First-Order Logic (FOL)*****' |
|
81 |
(cd FOL; make $NO $TEST > make$$.log) |
|
82 |
tail FOL/make$$.log |
|
83 |
gzip FOL/make$$.log |
|
84 |
#cannot delete FOL yet... it is needed for ZF, CCL and LCF! |
|
85 |
||
86 |
echo |
|
87 |
echo |
|
88 |
echo '*****Set theory (ZF)*****' |
|
89 |
(cd ZF; make $NO $TEST > make$$.log) |
|
90 |
tail ZF/make$$.log |
|
91 |
gzip ZF/make$$.log |
|
92 |
case $CLEAN.$EXEC in |
|
1482 | 93 |
on.on) rm -f $ISABELLEBIN/ZF $ISABELLEBIN/ZF.heap |
0 | 94 |
esac |
95 |
||
96 |
echo |
|
97 |
echo |
|
98 |
echo '*****Classical Computational Logic (CCL)*****' |
|
99 |
(cd CCL; make $NO $TEST > make$$.log) |
|
100 |
tail CCL/make$$.log |
|
101 |
gzip CCL/make$$.log |
|
102 |
case $CLEAN.$EXEC in |
|
1482 | 103 |
on.on) rm -f $ISABELLEBIN/CCL $ISABELLEBIN/CCL.heap |
0 | 104 |
esac |
105 |
||
106 |
echo |
|
107 |
echo |
|
108 |
echo '*****Domain Theory (LCF)*****' |
|
109 |
(cd LCF; make $NO $TEST > make$$.log) |
|
110 |
tail LCF/make$$.log |
|
111 |
gzip LCF/make$$.log |
|
112 |
case $CLEAN.$EXEC in |
|
1482 | 113 |
on.on) rm -f $ISABELLEBIN/FOL $ISABELLEBIN/FOL.heap \ |
114 |
$ISABELLEBIN/LCF $ISABELLEBIN/LCF.heap |
|
0 | 115 |
esac |
116 |
||
117 |
echo |
|
118 |
echo |
|
119 |
echo '*****Constructive Type Theory (CTT)*****' |
|
120 |
(cd CTT; make $NO $TEST > make$$.log) |
|
121 |
tail CTT/make$$.log |
|
122 |
gzip CTT/make$$.log |
|
123 |
case $CLEAN.$EXEC in |
|
1482 | 124 |
on.on) rm -f $ISABELLEBIN/CTT $ISABELLEBIN/CTT.heap |
0 | 125 |
esac |
126 |
||
127 |
echo |
|
128 |
echo |
|
2092 | 129 |
echo '*****Sequent Calculi (Sequents)*****' |
130 |
(cd Sequents; make $NO $TEST > make$$.log) |
|
131 |
tail Sequents/make$$.log |
|
132 |
gzip Sequents/make$$.log |
|
0 | 133 |
case $CLEAN.$EXEC in |
2092 | 134 |
on.on) rm -f $ISABELLEBIN/Sequents $ISABELLEBIN/Sequents.heap |
0 | 135 |
esac |
136 |
||
137 |
echo |
|
138 |
echo |
|
1176 | 139 |
echo '*****Curried Higher-Order Logic (HOL)*****' |
140 |
(cd HOL; make $NO $TEST > make$$.log) |
|
141 |
tail HOL/make$$.log |
|
142 |
gzip HOL/make$$.log |
|
143 |
#cannot delete HOL yet... it is needed for HOLCF! |
|
246 | 144 |
|
145 |
echo |
|
146 |
echo |
|
262 | 147 |
echo '*****LCF in HOL (HOLCF)*****' |
246 | 148 |
(cd HOLCF; make $NO $TEST > make$$.log) |
149 |
tail HOLCF/make$$.log |
|
150 |
gzip HOLCF/make$$.log |
|
0 | 151 |
case $CLEAN.$EXEC in |
1482 | 152 |
on.on) rm -f $ISABELLEBIN/HOL $ISABELLEBIN/HOL.heap \ |
153 |
$ISABELLEBIN/HOLCF $ISABELLEBIN/HOLCF.heap |
|
1146 | 154 |
esac |
155 |
||
156 |
echo |
|
157 |
echo |
|
0 | 158 |
echo '*****The Lambda-Cube (Cube)*****' |
159 |
(cd Cube; make $NO $TEST > make$$.log) |
|
160 |
case $CLEAN.$EXEC in |
|
1482 | 161 |
on.on) rm -f $ISABELLEBIN/Cube $ISABELLEBIN/Cube.heap |
0 | 162 |
esac |
163 |
tail Cube/make$$.log |
|
164 |
gzip Cube/make$$.log |
|
165 |
||
166 |
echo |
|
167 |
echo |
|
168 |
echo '*****First-Order Logic with Proof Terms (FOLP)*****' |
|
169 |
(cd FOLP; make $NO $TEST > make$$.log) |
|
170 |
case $CLEAN.$EXEC in |
|
1482 | 171 |
on.on) rm -f $ISABELLEBIN/FOLP $ISABELLEBIN/FOLP.heap |
0 | 172 |
esac |
173 |
tail FOLP/make$$.log |
|
174 |
gzip FOLP/make$$.log |
|
175 |
||
176 |
case $TEST.$EXEC in |
|
177 |
test.on) echo |
|
178 |
echo '***** Now check the dates on the "test" files *****' |
|
179 |
ls -lrt FOL/test ZF/test CCL/test LCF/test CTT/test\ |
|
2092 | 180 |
Sequents/test HOL/test HOLCF/test\ |
1146 | 181 |
Cube/test FOLP/test |
0 | 182 |
esac |
183 |
echo Finished at `date` |