| author | ballarin |
| Tue, 16 Dec 2008 14:29:05 +0100 | |
| changeset 29216 | 528e68bea04d |
| parent 28650 | a7ba12e0d3b7 |
| child 29143 | 72c960b2b83e |
| permissions | -rwxr-xr-x |
| 10555 | 1 |
#!/usr/bin/env bash |
| 2502 | 2 |
# |
3 |
# $Id$ |
|
| 9788 | 4 |
# Author: Markus Wenzel, TU Muenchen |
| 2502 | 5 |
# |
| 4456 | 6 |
# DESCRIPTION: apply make utility to all logics |
| 2502 | 7 |
|
| 4456 | 8 |
## global settings |
| 2502 | 9 |
|
| 15845 | 10 |
ALL_LOGICS="Pure FOL HOL ZF CCL CTT Cube FOLP HOLCF LCF Sequents" |
| 2502 | 11 |
|
12 |
||
| 4456 | 13 |
## diagnostics |
| 2502 | 14 |
|
| 10511 | 15 |
PRG="$(basename "$0")" |
| 2502 | 16 |
|
| 4456 | 17 |
function usage() |
18 |
{
|
|
19 |
echo |
|
| 28650 | 20 |
echo "Usage: isabelle $PRG [ARGS ...]" |
| 4456 | 21 |
echo |
|
28504
7ad7d7d6df47
simplified main Isabelle executables: removed Isabelle and isabelle (replaced by isabelle-process), renamed isatool to isabelle;
wenzelm
parents:
28500
diff
changeset
|
22 |
echo " Apply isabelle make to all logics (passing ARGS)." |
| 4456 | 23 |
echo |
24 |
exit 1 |
|
25 |
} |
|
| 2502 | 26 |
|
| 13229 | 27 |
function fail() |
28 |
{
|
|
29 |
echo "$1" >&2 |
|
30 |
exit 2 |
|
31 |
} |
|
| 2502 | 32 |
|
| 4456 | 33 |
## main |
34 |
||
35 |
[ "$1" = "-?" ] && usage |
|
| 2502 | 36 |
|
|
13235
c26fc3baeffc
fail not so early, but produce correct exit code in the end
kleing
parents:
13229
diff
changeset
|
37 |
FAIL="" |
|
c26fc3baeffc
fail not so early, but produce correct exit code in the end
kleing
parents:
13229
diff
changeset
|
38 |
|
| 10511 | 39 |
echo "Started at $(date) ($ML_IDENTIFIER on $(hostname))" |
|
18321
3414557c2dda
replaced lib/scripts/showtime by more advanced lib/scripts/timestart|stop.bash;
wenzelm
parents:
15845
diff
changeset
|
40 |
. "$ISABELLE_HOME/lib/scripts/timestart.bash" |
| 2502 | 41 |
|
| 4456 | 42 |
for L in $ALL_LOGICS |
43 |
do |
|
| 28500 | 44 |
( cd "$ISABELLE_HOME/src/$L"; "$ISABELLE_TOOL" make "$@" ) || FAIL="$FAIL$L " |
| 4456 | 45 |
done |
| 2502 | 46 |
|
| 4456 | 47 |
echo -n "Finished at "; date |
| 2502 | 48 |
|
|
18321
3414557c2dda
replaced lib/scripts/showtime by more advanced lib/scripts/timestart|stop.bash;
wenzelm
parents:
15845
diff
changeset
|
49 |
. "$ISABELLE_HOME/lib/scripts/timestop.bash" |
|
3414557c2dda
replaced lib/scripts/showtime by more advanced lib/scripts/timestart|stop.bash;
wenzelm
parents:
15845
diff
changeset
|
50 |
echo "$TIMES_REPORT" |
|
13235
c26fc3baeffc
fail not so early, but produce correct exit code in the end
kleing
parents:
13229
diff
changeset
|
51 |
|
| 13834 | 52 |
[ "$FAIL" = "" ] || fail "Logics ${FAIL}FAILED!"
|