From 6ad0b032d4825b5badd9e0eedcd205cbb9069bcb Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Mon, 19 Nov 2018 19:28:25 -0500 Subject: [PATCH] redo-log: add man page. --- Documentation/redo-log.md | 83 +++++++++++++++++++++++++++++++++++++++ Documentation/redo.md | 29 ++++++++++++++ clean.do | 2 +- mkdocs.yml | 1 + 4 files changed, 114 insertions(+), 1 deletion(-) create mode 100644 Documentation/redo-log.md diff --git a/Documentation/redo-log.md b/Documentation/redo-log.md new file mode 100644 index 0000000..cd6af0c --- /dev/null +++ b/Documentation/redo-log.md @@ -0,0 +1,83 @@ +# NAME + +redo-log - display log messages from previous builds + +# SYNOPSIS + +redo-log [options...] [targets...] + + +# DESCRIPTION + +When redo runs, it captures the standard error (stderr) output from the +build activity for each target, and saves it for later. When a target is +rebuilt, the new logs replace the old logs for that target. redo-log +prints the log output for any set of targets. + +# OPTIONS + +-r, --recursive +: if the requested targets cause any dependencies to be built, recursively + show the logs from those dependencies as well. (And if those + dependencies build further dependencies, also show those logs, and so on.) + +-u, --unchanged +: show messages even for dependencies that were unchanged (did not need to be + rebuilt). To do this, we show the logs for the *most recent* build of + each affected dependency. Usually this is used with `-r`. + +-f, --follow +: if a build is currently running for any of the requested targets or + their dependencies, follow the logs (like `tail -f`) until the build + finishes. + +--no-details +: display *only* the messages from redo itself, not the other messages + produced by build scripts. Generally this gives you a list of which + targets were built, but not detailed logs, warnings, or errors. + +--no-status +: don't display the running build status at the bottom of the screen. + (Unless this option is specified, the status line will be enabled + if using --follow, if stderr is a terminal.) If stderr is *not* a + terminal, you can force enable the status line using --status. + +--no-pretty +: display "raw" redo log lines (@@REDO events) rather than using a + human-readable format. The default is --pretty. + +--no-color +: when using --pretty and writing to a terminal, colorize the output to + make results stand out more clearly. If not writing to a terminal, you + can use --color to force colorized output. + +--debug-locks +: print messages about acquiring, releasing, and waiting + on locks. Because redo can be highly parallelized, + one instance may end up waiting for a target to be + built by some other instance before it can continue. + If you suspect this is causing troubles, use this + option to see which instance is waiting and when. + +--debug-pids +: add the process id of the particular redo instance to each + output message. This makes it easier to figure out + which sub-instance of redo is doing what. + + +# REDO + +Part of the `redo`(1) suite. + +# CREDITS + +The original concept for `redo` was created by D. J. +Bernstein and documented on his web site +(http://cr.yp.to/redo.html). This independent implementation +was created by Avery Pennarun and you can find its source +code at http://github.com/apenwarr/redo. + + +# SEE ALSO + +`redo`(1) diff --git a/Documentation/redo.md b/Documentation/redo.md index e508ada..b98d189 100644 --- a/Documentation/redo.md +++ b/Documentation/redo.md @@ -86,6 +86,32 @@ dependencies. can just run three `redo` commands consecutively. Because your .do script is just a script, it will not be accidentally parallelized. + +--no-details +: display *only* the messages from redo itself, not the other messages + produced by build scripts. Generally this gives you a list of which + targets were built, but not detailed logs, warnings, or errors. + +--no-status +: don't display the running build status at the bottom of the screen. + (Unless this option is specified, the status line will be enabled + if using --follow, if stderr is a terminal.) If stderr is *not* a + terminal, you can force enable the status line using --status. + +--no-pretty +: display "raw" redo log lines (@@REDO events) rather than using a + human-readable format. The default is --pretty. + +--no-color +: when using --pretty and writing to a terminal, colorize the output to + make results stand out more clearly. If not writing to a terminal, you + can use --color to force colorized output. + +--no-log +: don't capture stderr log messages from build scripts. This prevents + redo-log from redisplaying the logs later, and if using --jobs, causes + output from all parallel jobs to be jumbled together. This was the + only behaviour available before redo-0.30. The default is --log. --debug-locks : print messages about acquiring, releasing, and waiting @@ -100,6 +126,9 @@ dependencies. output message. This makes it easier to figure out which sub-instance of redo is doing what. +--version +: displays the redo version number. + # DISCUSSION diff --git a/clean.do b/clean.do index 694c6b2..ed3fc5e 100644 --- a/clean.do +++ b/clean.do @@ -6,7 +6,7 @@ if [ -e .do_built ]; then done <.do_built fi [ -z "$DO_BUILT" ] && rm -rf .do_built .do_built.dir -rm -rf minimal/.do_built minimal/.do_built.dir +rm -rf minimal/.do_built minimal/.do_built.dir website redo t/clean Documentation/clean version/clean rm -f *~ .*~ */*~ */.*~ *.pyc install.wrapper find . -name '*.tmp' -exec rm -fv {} \; diff --git a/mkdocs.yml b/mkdocs.yml index 889eeda..4ddc6e2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -25,3 +25,4 @@ pages: - redo-targets: redo-targets.md - redo-ood: redo-ood.md - redo-whichdo: redo-whichdo.md + - redo-log: redo-log.md