mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
build: Standardize on .pod -> .x.in -> .x
After this commit, all man pages are generated using the same two steps: 1. Process a source $command.pod file with pod2man(1) to obtain a valid man page in $command.$section.in 2. Process $command.$section.in with sed(1) to obtain the final man page in $command.$section
This commit is contained in:
parent
9b77ce63f1
commit
5b479f3b5b
@ -69,7 +69,7 @@ EXTRA_DIST = \
|
|||||||
libvirtd.uml.logrotate.in \
|
libvirtd.uml.logrotate.in \
|
||||||
test_libvirtd.aug.in \
|
test_libvirtd.aug.in \
|
||||||
THREADS.txt \
|
THREADS.txt \
|
||||||
libvirtd.pod.in \
|
libvirtd.pod \
|
||||||
libvirtd.8.in \
|
libvirtd.8.in \
|
||||||
$(DAEMON_SOURCES) \
|
$(DAEMON_SOURCES) \
|
||||||
$(LIBVIRTD_CONF_SOURCES) \
|
$(LIBVIRTD_CONF_SOURCES) \
|
||||||
@ -161,13 +161,6 @@ augeastests_DATA = test_libvirtd.aug
|
|||||||
|
|
||||||
CLEANFILES += test_libvirtd.aug
|
CLEANFILES += test_libvirtd.aug
|
||||||
|
|
||||||
libvirtd.8: libvirtd.8.in
|
|
||||||
$(AM_V_GEN)sed \
|
|
||||||
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
|
|
||||||
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \
|
|
||||||
< $< > $@-t && \
|
|
||||||
mv $@-t $@
|
|
||||||
|
|
||||||
libvirtd_SOURCES = $(DAEMON_SOURCES)
|
libvirtd_SOURCES = $(DAEMON_SOURCES)
|
||||||
|
|
||||||
#-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_POSIX_C_SOURCE=199506L
|
#-D_XOPEN_SOURCE=600 -D_XOPEN_SOURCE_EXTENDED=1 -D_POSIX_C_SOURCE=199506L
|
||||||
@ -504,12 +497,18 @@ install-data-local: install-data-sasl
|
|||||||
uninstall-local:: uninstall-data-sasl
|
uninstall-local:: uninstall-data-sasl
|
||||||
endif ! WITH_LIBVIRTD
|
endif ! WITH_LIBVIRTD
|
||||||
|
|
||||||
POD2MAN = pod2man -c "Virtualization Support" \
|
POD2MAN = pod2man -c "Virtualization Support" -r "$(PACKAGE)-$(VERSION)"
|
||||||
-r "$(PACKAGE)-$(VERSION)" -s 8
|
|
||||||
|
|
||||||
libvirtd.8.in: libvirtd.pod.in $(top_srcdir)/configure.ac
|
%.8.in: %.pod
|
||||||
$(AM_V_GEN)$(POD2MAN) --name LIBVIRTD $< $@ \
|
$(AM_V_GEN)$(POD2MAN) --section=8 $< $@ \
|
||||||
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
||||||
|
|
||||||
|
%.8: %.8.in $(top_srcdir)/configure.ac
|
||||||
|
$(AM_V_GEN)sed \
|
||||||
|
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
|
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \
|
||||||
|
< $< > $@-t && \
|
||||||
|
mv $@-t $@
|
||||||
|
|
||||||
# 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
|
||||||
|
@ -2562,29 +2562,21 @@ virtlogd.init: logging/virtlogd.init.in $(top_builddir)/config.status
|
|||||||
chmod a+x $@-t && \
|
chmod a+x $@-t && \
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
|
||||||
POD2MAN = pod2man -c "Virtualization Support" \
|
POD2MAN = pod2man -c "Virtualization Support" -r "$(PACKAGE)-$(VERSION)"
|
||||||
-r "$(PACKAGE)-$(VERSION)" -s 8
|
|
||||||
|
|
||||||
virtlockd.8.in: locking/virtlockd.pod.in $(top_srcdir)/configure.ac
|
virtlockd.8.in: locking/virtlockd.pod
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRTLOCKD $< $@ \
|
$(AM_V_GEN)$(POD2MAN) --section 8 $< $@ \
|
||||||
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
||||||
|
|
||||||
virtlockd.8: virtlockd.8.in
|
virtlogd.8.in: logging/virtlogd.pod
|
||||||
|
$(AM_V_GEN)$(POD2MAN) --section 8 $< $@ \
|
||||||
|
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
||||||
|
|
||||||
|
%.8: %.8.in $(top_srcdir)/configure.ac
|
||||||
$(AM_V_GEN)sed \
|
$(AM_V_GEN)sed \
|
||||||
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
|
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
|
||||||
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \
|
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \
|
||||||
< $< > $@-t && \
|
< $< > $@-t && \
|
||||||
mv $@-t $@
|
|
||||||
|
|
||||||
virtlogd.8.in: logging/virtlogd.pod.in $(top_srcdir)/configure.ac
|
|
||||||
$(AM_V_GEN)$(POD2MAN) --name VIRTLOGD $< $@ \
|
|
||||||
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
|
||||||
|
|
||||||
virtlogd.8: virtlogd.8.in
|
|
||||||
$(AM_V_GEN)sed \
|
|
||||||
-e 's|[@]sysconfdir[@]|$(sysconfdir)|g' \
|
|
||||||
-e 's|[@]localstatedir[@]|$(localstatedir)|g' \
|
|
||||||
< $< > $@-t && \
|
|
||||||
mv $@-t $@
|
mv $@-t $@
|
||||||
|
|
||||||
if WITH_LIBVIRTD
|
if WITH_LIBVIRTD
|
||||||
@ -2603,14 +2595,14 @@ MAINTAINERCLEANFILES += virtlockd.8.in virtlogd.8.in
|
|||||||
EXTRA_DIST += \
|
EXTRA_DIST += \
|
||||||
locking/virtlockd.service.in \
|
locking/virtlockd.service.in \
|
||||||
locking/virtlockd.socket.in \
|
locking/virtlockd.socket.in \
|
||||||
locking/virtlockd.pod.in \
|
locking/virtlockd.pod \
|
||||||
virtlockd.8.in \
|
virtlockd.8.in \
|
||||||
locking/virtlockd.aug \
|
locking/virtlockd.aug \
|
||||||
locking/virtlockd.conf \
|
locking/virtlockd.conf \
|
||||||
locking/test_virtlockd.aug.in \
|
locking/test_virtlockd.aug.in \
|
||||||
logging/virtlogd.service.in \
|
logging/virtlogd.service.in \
|
||||||
logging/virtlogd.socket.in \
|
logging/virtlogd.socket.in \
|
||||||
logging/virtlogd.pod.in \
|
logging/virtlogd.pod \
|
||||||
virtlogd.8.in \
|
virtlogd.8.in \
|
||||||
logging/virtlogd.aug \
|
logging/virtlogd.aug \
|
||||||
logging/virtlogd.conf \
|
logging/virtlogd.conf \
|
||||||
|
@ -28,8 +28,6 @@ AM_LDFLAGS = \
|
|||||||
$(NO_INDIRECT_LDFLAGS) \
|
$(NO_INDIRECT_LDFLAGS) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
POD2MAN = pod2man -c "Virtualization Support" -r "$(PACKAGE)-$(VERSION)"
|
|
||||||
|
|
||||||
ICON_FILES = \
|
ICON_FILES = \
|
||||||
libvirt_win_icon_16x16.ico \
|
libvirt_win_icon_16x16.ico \
|
||||||
libvirt_win_icon_32x32.ico \
|
libvirt_win_icon_32x32.ico \
|
||||||
@ -273,6 +271,8 @@ virsh_win_icon.$(OBJEXT): virsh_win_icon.rc
|
|||||||
--output-format coff --output $@
|
--output-format coff --output $@
|
||||||
endif WITH_WIN_ICON
|
endif WITH_WIN_ICON
|
||||||
|
|
||||||
|
POD2MAN = pod2man -c "Virtualization Support" -r "$(PACKAGE)-$(VERSION)"
|
||||||
|
|
||||||
%.1.in: %.pod
|
%.1.in: %.pod
|
||||||
$(AM_V_GEN)$(POD2MAN) $< $@ \
|
$(AM_V_GEN)$(POD2MAN) $< $@ \
|
||||||
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
&& if grep 'POD ERROR' $@ ; then rm $@; exit 1; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user