summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-15 18:20:54 +0300
committerLars Wirzenius <liw@liw.fi>2021-09-15 18:20:54 +0300
commitb4918e1d9696a092da8ca25b9f2d9f4b1fd22e2b (patch)
tree95b80f0b6efc45c62d1db53061e48e8354f3764a
parent036fa96e9dce91de6b07a427d56c22eadb838016 (diff)
downloadobnam2-b4918e1d9696a092da8ca25b9f2d9f4b1fd22e2b.tar.gz
chore: make chronic (from moreutils) an optional build dependency
Sponsored-by: author
-rw-r--r--README.md3
-rwxr-xr-xcheck5
2 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index dd9240e..11dabc5 100644
--- a/README.md
+++ b/README.md
@@ -49,7 +49,8 @@ merely for building Debian packages:
* [moreutils](https://joeyh.name/code/moreutils/) &mdash; a collection
of handy utilities, of which the Obnam test suite uses the `chronic`
- tool to hide output of successful commands.
+ tool to hide output of successful commands. This is optional, but
+ nice to have.
* [pkg-config](http://pkg-config.freedesktop.org) &mdash; a tool for
managing compile and link time flags; needed so that the OpenSSL
diff --git a/check b/check
index 7d5098c..2da9a65 100755
--- a/check
+++ b/check
@@ -5,6 +5,10 @@
set -eu
hideok=chronic
+if ! command -v chronic >/dev/null; then
+ hideok=
+fi
+
if [ "$#" -gt 0 ]; then
case "$1" in
verbose | -v | --verbose)
@@ -31,7 +35,6 @@ require_cmd cargo
require_cmd python3
require_cmd subplot
require_cmd summain
-require_cmd chronic
require_cmd pkg-config
require_cmd pandoc
require_cmd pdflatex