edob.eclass

Name

edob.eclass — Wrap output-producing commands in ebegin/eend

Description

This eclass provides the edob command for ebegin/eend, which logs the command used verbosely and dies (exits) on failure.

The edob command can be used for long running commands, even if those commands produce output. The edob command will suppress the command's output and only present it if the command returned with a non-zero exit status.

Supported EAPIs

7 8 9

Functions

edob [-l <log-name>] [-m <message>] <command> [<args>...]

Executes 'command' with any given arguments wrapped in ebegin and eend. Aborts on failure unless called under 'nonfatal'. Furthermore, redirects stdout and stderr to a log file. The content of the log file is shown if the command returns with a non-zero exit status.

If -m <message> is provided, then invokes ebegin with <message>, otherwise a default message is used. If -l <log-name> is provided, then <log-name> is used to construct the name of the log file to which stdout and stderr of the command is redirected to.

Authors

Sam James <sam@gentoo.org>

Florian Schmaus <flow@gentoo.org>

Maintainers

QA Team <qa@gentoo.org>

Reporting Bugs

Please report bugs via https://bugs.gentoo.org/