10555
|
1 |
#!/usr/bin/env bash
|
2502
|
2 |
#
|
|
3 |
# $Id$
|
9788
|
4 |
# Author: Markus Wenzel, TU Muenchen
|
|
5 |
# License: GPL (GNU GENERAL PUBLIC LICENSE)
|
2502
|
6 |
#
|
4456
|
7 |
# DESCRIPTION: apply make utility to all logics
|
2502
|
8 |
|
4456
|
9 |
## global settings
|
2502
|
10 |
|
4456
|
11 |
ALL_LOGICS="CCL CTT Cube FOL FOLP HOL HOLCF LCF Pure Sequents ZF"
|
2502
|
12 |
|
|
13 |
|
4456
|
14 |
## diagnostics
|
2502
|
15 |
|
10511
|
16 |
PRG="$(basename "$0")"
|
2502
|
17 |
|
4456
|
18 |
function usage()
|
|
19 |
{
|
|
20 |
echo
|
|
21 |
echo "Usage: $PRG [ARGS ...]"
|
|
22 |
echo
|
|
23 |
echo " Apply isatool make to all logics (passing ARGS)."
|
|
24 |
echo
|
|
25 |
exit 1
|
|
26 |
}
|
2502
|
27 |
|
|
28 |
|
4456
|
29 |
## main
|
|
30 |
|
|
31 |
[ "$1" = "-?" ] && usage
|
2502
|
32 |
|
10511
|
33 |
echo "Started at $(date) ($ML_IDENTIFIER on $(hostname))"
|
2502
|
34 |
|
4456
|
35 |
for L in $ALL_LOGICS
|
|
36 |
do
|
9788
|
37 |
( cd "$ISABELLE_HOME/src/$L"; "$ISATOOL" make "$@" )
|
4456
|
38 |
done
|
2502
|
39 |
|
4456
|
40 |
echo -n "Finished at "; date
|
2502
|
41 |
|
9788
|
42 |
ELAPSED=$("$ISABELLE_HOME/lib/scripts/showtime" "$SECONDS")
|
4456
|
43 |
echo "$ELAPSED total elapsed time"
|