From 062eb0707803ecbe5797f5ce1bb547e798331a47 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 16 Aug 2008 19:37:16 +0200 Subject: [PATCH] src/Makefile.am: Check for POD errors in the generated manpages. If any of the generated manpages includes the string '\' the build aborts with an error message. If pod2man finds any errors it adds a section with that name to the output. Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- src/Makefile.am | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 55770f0f..f0ad3cb4 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -793,10 +793,20 @@ EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.pod \ postgresql_default.conf .pod.1: - pod2man --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + pod2man --release=$(VERSION) --center=$(PACKAGE) $< \ + >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + if grep '\' $@ >/dev/null 2>&1; \ + then \ + echo "$@ has some POD errors!"; false; \ + fi .pod.5: - pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< \ + >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true + if grep '\' $@ >/dev/null 2>&1; \ + then \ + echo "$@ has some POD errors!"; false; \ + fi install-exec-hook: $(mkinstalldirs) $(DESTDIR)$(sysconfdir) -- 2.11.0