lib/Tools/build
author haftmann
Sat, 19 Dec 2015 17:03:17 +0100
changeset 61891 76189756ff65
parent 61135 8f7d802b7a71
child 62589 b5783412bfed
permissions -rwxr-xr-x
documentation on last state of the art concerning interpretation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     1
#!/usr/bin/env bash
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     2
#
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     3
# Author: Makarius
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     4
#
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     5
# DESCRIPTION: build and manage Isabelle sessions
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
     6
61135
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
     7
## settings
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
     8
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
     9
case "$ISABELLE_JAVA_PLATFORM" in
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    10
  x86-*)
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    11
    ISABELLE_BUILD_JAVA_OPTIONS="$ISABELLE_BUILD_JAVA_OPTIONS32"
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    12
    ;;
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    13
  x86_64-*)
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    14
    ISABELLE_BUILD_JAVA_OPTIONS="$ISABELLE_BUILD_JAVA_OPTIONS64"
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    15
    ;;
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    16
esac
8f7d802b7a71 clarified Java runtime options (NB: ISABELLE_JAVA_PLATFORM is determined later via component);
wenzelm
parents: 61131
diff changeset
    17
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    18
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    19
## diagnostics
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    20
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    21
PRG="$(basename "$0")"
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    22
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    23
function show_settings()
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    24
{
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    25
  local PREFIX="$1"
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    26
  echo "${PREFIX}ISABELLE_BUILD_OPTIONS=\"$ISABELLE_BUILD_OPTIONS\""
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    27
  echo
61131
83459eb76fe3 clarified ISABELLE_BUILD_JAVA_OPTIONS;
wenzelm
parents: 60106
diff changeset
    28
  echo "${PREFIX}ISABELLE_BUILD_JAVA_OPTIONS=\"$ISABELLE_BUILD_JAVA_OPTIONS\""
83459eb76fe3 clarified ISABELLE_BUILD_JAVA_OPTIONS;
wenzelm
parents: 60106
diff changeset
    29
  echo
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    30
  echo "${PREFIX}ML_PLATFORM=\"$ML_PLATFORM\""
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    31
  echo "${PREFIX}ML_HOME=\"$ML_HOME\""
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    32
  echo "${PREFIX}ML_SYSTEM=\"$ML_SYSTEM\""
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    33
  echo "${PREFIX}ML_OPTIONS=\"$ML_OPTIONS\""
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    34
}
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    35
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    36
function usage()
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    37
{
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    38
  echo
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    39
  echo "Usage: isabelle $PRG [OPTIONS] [SESSIONS ...]"
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    40
  echo
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    41
  echo "  Options are:"
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
    42
  echo "    -D DIR       include session directory and select its sessions"
49131
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
    43
  echo "    -R           operate on requirements of selected sessions"
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
    44
  echo "    -X NAME      exclude sessions from group NAME and all descendants"
48570
0c32d6267b93 tuned message;
wenzelm
parents: 48546
diff changeset
    45
  echo "    -a           select all sessions"
48511
37999ee01156 remove old output heaps, to ensure that result is valid wrt. check_stamps;
wenzelm
parents: 48509
diff changeset
    46
  echo "    -b           build heap images"
48595
231e6fa96dbb added build option -c;
wenzelm
parents: 48594
diff changeset
    47
  echo "    -c           clean build"
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
    48
  echo "    -d DIR       include session directory"
48570
0c32d6267b93 tuned message;
wenzelm
parents: 48546
diff changeset
    49
  echo "    -g NAME      select session group NAME"
48578
21361b6189a6 some description of isabelle build;
wenzelm
parents: 48570
diff changeset
    50
  echo "    -j INT       maximum number of parallel jobs (default 1)"
59891
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
    51
  echo "    -k KEYWORD   check theory sources for conflicts with proposed keywords"
48903
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
    52
  echo "    -l           list session source files"
48469
826a771cff33 clarified build -n (no build);
wenzelm
parents: 48459
diff changeset
    53
  echo "    -n           no build -- test dependencies only"
52056
fc458f304f93 added isabelle-process option -o;
wenzelm
parents: 51977
diff changeset
    54
  echo "    -o OPTION    override Isabelle system OPTION (via NAME=VAL or NAME)"
48447
ef600ce4559c added system build mode: produce output in ISABELLE_HOME;
wenzelm
parents: 48425
diff changeset
    55
  echo "    -s           system build mode: produce output in ISABELLE_HOME"
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    56
  echo "    -v           verbose"
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
    57
  echo "    -x NAME      exclude session NAME and all descendants"
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    58
  echo
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    59
  echo "  Build and manage Isabelle sessions, depending on implicit"
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
    60
  show_settings "  "
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    61
  echo
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    62
  exit 1
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    63
}
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    64
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    65
function fail()
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    66
{
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    67
  echo "$1" >&2
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    68
  exit 2
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    69
}
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    70
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    71
function check_number()
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    72
{
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    73
  [ -n "$1" -a -z "$(echo "$1" | tr -d '[0-9]')" ] || fail "Bad number: \"$1\""
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    74
}
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    75
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    76
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    77
## process command line
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    78
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
    79
declare -a SELECT_DIRS=()
49131
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
    80
REQUIREMENTS=false
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
    81
declare -a EXCLUDE_SESSION_GROUPS=()
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    82
ALL_SESSIONS=false
48511
37999ee01156 remove old output heaps, to ensure that result is valid wrt. check_stamps;
wenzelm
parents: 48509
diff changeset
    83
BUILD_HEAP=false
48595
231e6fa96dbb added build option -c;
wenzelm
parents: 48594
diff changeset
    84
CLEAN_BUILD=false
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
    85
declare -a INCLUDE_DIRS=()
48509
4854ced3e9d7 support session groups;
wenzelm
parents: 48474
diff changeset
    86
declare -a SESSION_GROUPS=()
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    87
MAX_JOBS=1
59891
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
    88
declare -a CHECK_KEYWORDS=()
48903
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
    89
LIST_FILES=false
48469
826a771cff33 clarified build -n (no build);
wenzelm
parents: 48459
diff changeset
    90
NO_BUILD=false
48509
4854ced3e9d7 support session groups;
wenzelm
parents: 48474
diff changeset
    91
eval "declare -a BUILD_OPTIONS=($ISABELLE_BUILD_OPTIONS)"
48447
ef600ce4559c added system build mode: produce output in ISABELLE_HOME;
wenzelm
parents: 48425
diff changeset
    92
SYSTEM_MODE=false
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
    93
VERBOSE=false
59892
2a616319c171 added isabelle build option -x, to exclude sessions;
wenzelm
parents: 59891
diff changeset
    94
declare -a EXCLUDE_SESSIONS=()
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    95
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
    96
while getopts "D:RX:abcd:g:j:k:lno:svx:" OPT
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    97
do
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
    98
  case "$OPT" in
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
    99
    D)
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
   100
      SELECT_DIRS["${#SELECT_DIRS[@]}"]="$OPTARG"
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
   101
      ;;
49131
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
   102
    R)
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
   103
      REQUIREMENTS="true"
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
   104
      ;;
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
   105
    X)
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
   106
      EXCLUDE_SESSION_GROUPS["${#EXCLUDE_SESSION_GROUPS[@]}"]="$OPTARG"
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
   107
      ;;
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   108
    a)
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   109
      ALL_SESSIONS="true"
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   110
      ;;
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   111
    b)
48511
37999ee01156 remove old output heaps, to ensure that result is valid wrt. check_stamps;
wenzelm
parents: 48509
diff changeset
   112
      BUILD_HEAP="true"
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   113
      ;;
48595
231e6fa96dbb added build option -c;
wenzelm
parents: 48594
diff changeset
   114
    c)
231e6fa96dbb added build option -c;
wenzelm
parents: 48594
diff changeset
   115
      CLEAN_BUILD="true"
231e6fa96dbb added build option -c;
wenzelm
parents: 48594
diff changeset
   116
      ;;
48340
6f4fc030882a allow explicit specification of additional session directories;
wenzelm
parents: 48276
diff changeset
   117
    d)
48737
f3bbb9ca57d6 added build option -D: include session directory and select its sessions;
wenzelm
parents: 48601
diff changeset
   118
      INCLUDE_DIRS["${#INCLUDE_DIRS[@]}"]="$OPTARG"
48340
6f4fc030882a allow explicit specification of additional session directories;
wenzelm
parents: 48276
diff changeset
   119
      ;;
48509
4854ced3e9d7 support session groups;
wenzelm
parents: 48474
diff changeset
   120
    g)
4854ced3e9d7 support session groups;
wenzelm
parents: 48474
diff changeset
   121
      SESSION_GROUPS["${#SESSION_GROUPS[@]}"]="$OPTARG"
4854ced3e9d7 support session groups;
wenzelm
parents: 48474
diff changeset
   122
      ;;
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   123
    j)
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   124
      check_number "$OPTARG"
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   125
      MAX_JOBS="$OPTARG"
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   126
      ;;
59891
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
   127
    k)
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
   128
      CHECK_KEYWORDS["${#CHECK_KEYWORDS[@]}"]="$OPTARG"
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
   129
      ;;
48903
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
   130
    l)
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
   131
      LIST_FILES="true"
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
   132
      ;;
48469
826a771cff33 clarified build -n (no build);
wenzelm
parents: 48459
diff changeset
   133
    n)
826a771cff33 clarified build -n (no build);
wenzelm
parents: 48459
diff changeset
   134
      NO_BUILD="true"
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   135
      ;;
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   136
    o)
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   137
      BUILD_OPTIONS["${#BUILD_OPTIONS[@]}"]="$OPTARG"
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   138
      ;;
48447
ef600ce4559c added system build mode: produce output in ISABELLE_HOME;
wenzelm
parents: 48425
diff changeset
   139
    s)
ef600ce4559c added system build mode: produce output in ISABELLE_HOME;
wenzelm
parents: 48425
diff changeset
   140
      SYSTEM_MODE="true"
ef600ce4559c added system build mode: produce output in ISABELLE_HOME;
wenzelm
parents: 48425
diff changeset
   141
      ;;
48425
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   142
    v)
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   143
      VERBOSE="true"
0d95980e9aae parallel scheduling of jobs;
wenzelm
parents: 48340
diff changeset
   144
      ;;
59892
2a616319c171 added isabelle build option -x, to exclude sessions;
wenzelm
parents: 59891
diff changeset
   145
    x)
2a616319c171 added isabelle build option -x, to exclude sessions;
wenzelm
parents: 59891
diff changeset
   146
      EXCLUDE_SESSIONS["${#EXCLUDE_SESSIONS[@]}"]="$OPTARG"
2a616319c171 added isabelle build option -x, to exclude sessions;
wenzelm
parents: 59891
diff changeset
   147
      ;;
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   148
    \?)
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   149
      usage
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   150
      ;;
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   151
  esac
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   152
done
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   153
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   154
shift $(($OPTIND - 1))
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   155
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   156
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   157
## main
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   158
52443
725916b7dee5 more formal isabelle_admin_build;
wenzelm
parents: 52056
diff changeset
   159
isabelle_admin_build jars || exit $?
48276
4bd480886813 basic setup for Isabelle build tool;
wenzelm
parents:
diff changeset
   160
48601
655b08c2cd89 less verbosity;
wenzelm
parents: 48595
diff changeset
   161
if [ "$NO_BUILD" = false -a "$VERBOSE" = true ]; then
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   162
  echo "Started at $(date) ($ML_IDENTIFIER on $(hostname))"
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   163
48601
655b08c2cd89 less verbosity;
wenzelm
parents: 48595
diff changeset
   164
  show_settings ""
655b08c2cd89 less verbosity;
wenzelm
parents: 48595
diff changeset
   165
  echo
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   166
fi
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   167
59565
96e860a17b9a more uniform headless mode for all derivatives of "build" (amending df5dc24ca712);
wenzelm
parents: 59464
diff changeset
   168
declare -a JAVA_ARGS; eval "JAVA_ARGS=($ISABELLE_BUILD_JAVA_OPTIONS)"
51977
b55f90655328 more generous java resources via ISABELLE_BUILD_JAVA_OPTIONS;
wenzelm
parents: 50364
diff changeset
   169
48780
49a965020394 always show some timing information, to reduce the need for explicit -v;
wenzelm
parents: 48737
diff changeset
   170
. "$ISABELLE_HOME/lib/scripts/timestart.bash"
49a965020394 always show some timing information, to reduce the need for explicit -v;
wenzelm
parents: 48737
diff changeset
   171
51977
b55f90655328 more generous java resources via ISABELLE_BUILD_JAVA_OPTIONS;
wenzelm
parents: 50364
diff changeset
   172
"$ISABELLE_TOOL" java "${JAVA_ARGS[@]}" isabelle.Build \
49131
aa1e2ba3c697 added build option -R;
wenzelm
parents: 48903
diff changeset
   173
  "$REQUIREMENTS" "$ALL_SESSIONS" "$BUILD_HEAP" "$CLEAN_BUILD" "$MAX_JOBS" \
48903
1621b3f26095 added build option -l (list files);
wenzelm
parents: 48780
diff changeset
   174
  "$LIST_FILES" "$NO_BUILD" "$SYSTEM_MODE" "$VERBOSE" \
56890
7f120d227ca5 tuned signature;
wenzelm
parents: 52443
diff changeset
   175
  "${INCLUDE_DIRS[@]}" $'\n' "${SELECT_DIRS[@]}" $'\n' \
59891
9ce697050455 added isabelle build option -k, for fast off-line checking of theory sources;
wenzelm
parents: 59565
diff changeset
   176
  "${SESSION_GROUPS[@]}" $'\n' "${CHECK_KEYWORDS[@]}" $'\n' \
60106
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
   177
  "${BUILD_OPTIONS[@]}" $'\n' "${EXCLUDE_SESSION_GROUPS[@]}" $'\n' \
e0d1d9203275 allow to exclude session groups;
wenzelm
parents: 59892
diff changeset
   178
  "${EXCLUDE_SESSIONS[@]}" $'\n' "$@"
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   179
RC="$?"
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   180
48601
655b08c2cd89 less verbosity;
wenzelm
parents: 48595
diff changeset
   181
if [ "$NO_BUILD" = false -a "$VERBOSE" = true ]; then
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   182
  echo -n "Finished at "; date
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   183
fi
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   184
48780
49a965020394 always show some timing information, to reduce the need for explicit -v;
wenzelm
parents: 48737
diff changeset
   185
. "$ISABELLE_HOME/lib/scripts/timestop.bash"
49a965020394 always show some timing information, to reduce the need for explicit -v;
wenzelm
parents: 48737
diff changeset
   186
echo "$TIMES_REPORT"
49a965020394 always show some timing information, to reduce the need for explicit -v;
wenzelm
parents: 48737
diff changeset
   187
48474
5b9d79c6323b tuned messages (cf. isabelle makeall);
wenzelm
parents: 48469
diff changeset
   188
exit "$RC"