# HG changeset patch # User wenzelm # Date 1672949693 -3600 # Node ID cb4b1fdebf857be2662b3a57efe5ecc3e4365f0a # Parent de2e9a64d59b2bcc4dea95c259f672fd8a08f0b8 updated documentation; diff -r de2e9a64d59b -r cb4b1fdebf85 NEWS --- a/NEWS Thu Jan 05 21:14:37 2023 +0100 +++ b/NEWS Thu Jan 05 21:14:53 2023 +0100 @@ -191,6 +191,11 @@ *** System *** +* The command-line tool "isabelle update" is now directly based on +"isabelle build" instead of "isabelle dump". Thus it has become more +scalable, and supports a few additional options from "isabelle build". +Partial builds are supported as well, e.g. "isabelle update -n -a". + * Isabelle/Scala provides generic support for XZ and Zstd compression, via Compress.Options and Compress.Cache. Bytes.uncompress automatically detects the compression scheme. diff -r de2e9a64d59b -r cb4b1fdebf85 src/Doc/System/Sessions.thy --- a/src/Doc/System/Sessions.thy Thu Jan 05 21:14:37 2023 +0100 +++ b/src/Doc/System/Sessions.thy Thu Jan 05 21:14:53 2023 +0100 @@ -774,8 +774,8 @@ text \ The @{tool_def "update"} tool updates theory sources based on markup that is - produced from a running PIDE session (similar to @{tool dump} - \secref{sec:tool-dump}). Its command-line usage is: @{verbatim [display] + produced by the regular @{tool build} process \secref{sec:tool-build}). Its + command-line usage is: @{verbatim [display] \Usage: isabelle update [OPTIONS] [SESSIONS ...] Options are: @@ -784,9 +784,11 @@ -R refer to requirements of selected sessions -X NAME exclude sessions from group NAME and all descendants -a select all sessions - -b NAME base logic image (default "Pure") + -b NAME additional base logic -d DIR include session directory -g NAME select session group NAME + -j INT maximum number of parallel jobs (default 1) + -n no build -- take existing build databases -o OPTION override Isabelle system OPTION (via NAME=VAL or NAME) -u OPT override "update" option: shortcut for "-o update_OPT" -v verbose @@ -796,11 +798,15 @@ \<^medskip> Options \<^verbatim>\-B\, \<^verbatim>\-D\, \<^verbatim>\-R\, \<^verbatim>\-X\, \<^verbatim>\-a\, \<^verbatim>\-d\, \<^verbatim>\-g\, \<^verbatim>\-x\ and the remaining command-line arguments specify sessions as in @{tool build} - (\secref{sec:tool-build}) or @{tool dump} (\secref{sec:tool-dump}). + (\secref{sec:tool-build}). + + \<^medskip> Options \<^verbatim>\-N\ and \<^verbatim>\-j\ specify multicore parameters as in @{tool build}. - \<^medskip> Option \<^verbatim>\-b\ specifies an optional base logic image, for improved - scalability of the PIDE session. Its theories are only processed if it is - included in the overall session selection. + \<^medskip> Option \<^verbatim>\-n\ suppresses the actual build process, but existing build + databases are used nonetheless. + + \<^medskip> Option \<^verbatim>\-b\ specifies one or more base logics: these sessions and their + ancestors are \<^emph>\excluded\ from the update. \<^medskip> Option \<^verbatim>\-v\ increases the general level of verbosity. @@ -850,20 +856,14 @@ @{verbatim [display] \ isabelle update -u mixfix_cartouches HOL-Analysis\} - \<^smallskip> Update the same for all application sessions based on \<^verbatim>\HOL-Analysis\ --- - using its image as starting point (for reduced resource requirements): - - @{verbatim [display] \ isabelle update -u mixfix_cartouches -b HOL-Analysis -B HOL-Analysis\} + \<^smallskip> Update the same for all application sessions based on \<^verbatim>\HOL-Analysis\, but + do not change the underlying \<^verbatim>\HOL\ (and \<^verbatim>\Pure\) session: - \<^smallskip> Update sessions that build on \<^verbatim>\HOL-Proofs\, which need to be run - separately with special options as follows: + @{verbatim [display] \ isabelle update -u mixfix_cartouches -b HOL -B HOL-Analysis\} - @{verbatim [display] \ isabelle update -u mixfix_cartouches -l HOL-Proofs -B HOL-Proofs - -o record_proofs=2\} + \<^smallskip> Update all sessions that happen to be properly built beforehand: - \<^smallskip> See also the end of \secref{sec:tool-dump} for hints on increasing - Isabelle/ML heap sizes for very big PIDE processes that include many - sessions, notably from the Archive of Formal Proofs. + @{verbatim [display] \ isabelle update -u mixfix_cartouches -n -a\} \