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