Code

src/Makefile.am: Make manpage creation fail-safe.
authorFlorian Forster <octo@huhu.verplant.org>
Fri, 12 Oct 2007 07:32:23 +0000 (09:32 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Fri, 12 Oct 2007 07:32:23 +0000 (09:32 +0200)
Since Sebastian's patch ships the .pod files in the distribution, this may not
fail when perl-doc is not installed.

src/Makefile.am

index 57a9697de9cb6d9ce52a331ca4a313c8ee3215ac..fe69e8c688b03235eb42321e19de1e581cea32bb 100644 (file)
@@ -584,10 +584,10 @@ EXTRA_DIST += collectd-email.pod collectd-exec.pod collectd-nagios.pod \
        collectd.conf.pod collectd.pod
 
 .pod.1:
-       pod2man --release=$(VERSION) --center=$(PACKAGE) $< >$@
+       pod2man --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true
 
 .pod.5:
-       pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >$@
+       pod2man --section=5 --release=$(VERSION) --center=$(PACKAGE) $< >.pod2man.tmp 2>/dev/null && mv -f .pod2man.tmp $@ || true
 
 install-exec-hook:
        $(mkinstalldirs) $(DESTDIR)$(sysconfdir)