From: Sebastian Harl Date: Sat, 16 Aug 2008 17:37:16 +0000 (+0200) Subject: src/Makefile.am: Check for POD errors in the generated manpages. X-Git-Tag: collectd-4.5.0~72 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=062eb0707803ecbe5797f5ce1bb547e798331a47;p=collectd.git 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 --- 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)