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