mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-16 17:45:16 +00:00
build: check for pod errors
Patch 61299a1c fixed a long-standing pod error in the man page. But we should be preventing these up front. See also https://bugzilla.redhat.com/show_bug.cgi?id=870273 * tools/Makefile.am (virt-xml-validate.1, virt-pki-validate.1) (virt-host-validate.1, virt-sanlock-cleanup.8, virsh.1): Reject pod conversion errors. * daemon/Makefile.am ($(srcdir)/libvirtd.8.in): Likewise. (cherry picked from commit 2639949abe732cf683bec48f87ff6c243b608b76)
This commit is contained in:
parent
ecb70714a7
commit
891ca055f4
@ -378,7 +378,8 @@ POD2MAN = pod2man -c "Virtualization Support" \
|
|||||||
-r "$(PACKAGE)-$(VERSION)" -s 8
|
-r "$(PACKAGE)-$(VERSION)" -s 8
|
||||||
|
|
||||||
$(srcdir)/libvirtd.8.in: libvirtd.pod.in
|
$(srcdir)/libvirtd.8.in: libvirtd.pod.in
|
||||||
$(AM_V_GEN)$(POD2MAN) --name LIBVIRTD $< $@
|
$(AM_V_GEN)$(POD2MAN) --name LIBVIRTD $< $@ \
|
||||||
|
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
||||||
|
|
||||||
# This is needed for clients too, so can't wrap in
|
# This is needed for clients too, so can't wrap in
|
||||||
# the WITH_LIBVIRTD conditional
|
# the WITH_LIBVIRTD conditional
|
||||||
|
@ -61,17 +61,23 @@ virt-xml-validate: virt-xml-validate.in Makefile
|
|||||||
|| (rm $@ && exit 1) && chmod +x $@
|
|| (rm $@ && exit 1) && chmod +x $@
|
||||||
|
|
||||||
virt-xml-validate.1: virt-xml-validate.in
|
virt-xml-validate.1: virt-xml-validate.in
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRT-XML-VALIDATE $< $(srcdir)/$@
|
$(AM_V_GEN)$(POD2MAN) --name VIRT-XML-VALIDATE $< $(srcdir)/$@ \
|
||||||
|
&& if grep 'POD ERROR' $(srcdir)/$@ ; then \
|
||||||
|
rm $(srcdir)/$@; exit 1; fi
|
||||||
|
|
||||||
virt-pki-validate: virt-pki-validate.in Makefile
|
virt-pki-validate: virt-pki-validate.in Makefile
|
||||||
$(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' < $< > $@ \
|
$(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' < $< > $@ \
|
||||||
|| (rm $@ && exit 1) && chmod +x $@
|
|| (rm $@ && exit 1) && chmod +x $@
|
||||||
|
|
||||||
virt-pki-validate.1: virt-pki-validate.in
|
virt-pki-validate.1: virt-pki-validate.in
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRT-PKI-VALIDATE $< $(srcdir)/$@
|
$(AM_V_GEN)$(POD2MAN) --name VIRT-PKI-VALIDATE $< $(srcdir)/$@ \
|
||||||
|
&& if grep 'POD ERROR' $(srcdir)/$@ ; then \
|
||||||
|
rm $(srcdir)/$@; exit 1; fi
|
||||||
|
|
||||||
virt-host-validate.1: virt-host-validate.c
|
virt-host-validate.1: virt-host-validate.c
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRT-HOST-VALIDATE $< $(srcdir)/$@
|
$(AM_V_GEN)$(POD2MAN) --name VIRT-HOST-VALIDATE $< $(srcdir)/$@ \
|
||||||
|
&& if grep 'POD ERROR' $(srcdir)/$@ ; then \
|
||||||
|
rm $(srcdir)/$@; exit 1; fi
|
||||||
|
|
||||||
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
||||||
$(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' \
|
$(AM_V_GEN)sed -e 's,[@]SYSCONFDIR@,$(sysconfdir),' \
|
||||||
@ -79,7 +85,9 @@ virt-sanlock-cleanup: virt-sanlock-cleanup.in Makefile
|
|||||||
|| (rm $@ && exit 1) && chmod +x $@
|
|| (rm $@ && exit 1) && chmod +x $@
|
||||||
|
|
||||||
virt-sanlock-cleanup.8: virt-sanlock-cleanup.in
|
virt-sanlock-cleanup.8: virt-sanlock-cleanup.in
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRT-SANLOCK-CLEANUP $< $(srcdir)/$@
|
$(AM_V_GEN)$(POD2MAN) --name VIRT-SANLOCK-CLEANUP $< $(srcdir)/$@ \
|
||||||
|
&& if grep 'POD ERROR' $(srcdir)/$@ ; then \
|
||||||
|
rm $(srcdir)/$@; exit 1; fi
|
||||||
|
|
||||||
virt_host_validate_SOURCES = \
|
virt_host_validate_SOURCES = \
|
||||||
virt-host-validate.c \
|
virt-host-validate.c \
|
||||||
@ -162,7 +170,9 @@ virsh_win_icon.$(OBJEXT): virsh_win_icon.rc
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
virsh.1: virsh.pod
|
virsh.1: virsh.pod
|
||||||
$(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@
|
$(AM_V_GEN)$(POD2MAN) $< $(srcdir)/$@ \
|
||||||
|
&& if grep 'POD ERROR' $(srcdir)/$@ ; then \
|
||||||
|
rm $(srcdir)/$@; exit 1; fi
|
||||||
|
|
||||||
install-data-local: install-init install-systemd
|
install-data-local: install-init install-systemd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user