From 1e1694fce97b2f22e42e030f22c88945fa74fc22 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Thu, 14 Dec 2017 14:06:59 -0500 Subject: [PATCH] doc: Catch warnings and errors from rst2man Make rst2man exit with a non-zero exit status when there are warnings or errors in the source. --- doc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/Makefile b/doc/Makefile index 010c220..b723fed 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -16,10 +16,10 @@ include $(abs_top_srcdir)/lib/mk/antimake.mk pgbouncer.1: usage.rst frag-usage-man - $(SED) -e '4r frag-usage-man' usage.rst | $(RST2MAN) > $@ + $(SED) -e '4r frag-usage-man' usage.rst | $(RST2MAN) --exit-status=2 > $@ pgbouncer.5: config.rst frag-config-man - $(SED) -e '4r frag-config-man' config.rst | $(RST2MAN) > $@ + $(SED) -e '4r frag-config-man' config.rst | $(RST2MAN) --exit-status=2 > $@ web: make -C ../../pgbouncer.github.io -- 2.40.0