po-docs: Fix podwrapper so it works on translated POD files.

These don't contain literal strings like "AUTHORS" (they have the
translated versions instead) and so checking for these English strings
is rather useless.

Also we don't usually have the '--license' parameter conveniently
around so don't enforce this section.
This commit is contained in:
Richard W.M. Jones
2012-08-28 13:15:29 +01:00
parent 540fbfcf34
commit ddc67d94f3
3 changed files with 72 additions and 21 deletions

View File

@@ -58,8 +58,10 @@ all-local: $(MANPAGES)
guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-structs.pod
$(PODWRAPPER) \
--section 3 \
--no-strict-checks \
--man $@ \
--section 3 \
--license LGPLv2+ \
--insert $(srcdir)/guestfs-actions.pod:@ACTIONS@ \
--insert $(srcdir)/guestfs-availability.pod:@AVAILABILITY@ \
--insert $(srcdir)/guestfs-structs.pod:@STRUCTS@ \
@@ -67,23 +69,40 @@ guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-stru
guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod
$(PODWRAPPER) \
--no-strict-checks \
--man $@ \
--license GPLv2+ \
--insert $(srcdir)/guestfish-actions.pod:@ACTIONS@ \
--insert $(srcdir)/guestfish-commands.pod:@FISH_COMMANDS@ \
$<
virt-sysprep.1: virt-sysprep.pod sysprep-extra-options.pod sysprep-operations.pod
$(PODWRAPPER) \
--no-strict-checks \
--man $@ \
--license GPLv2+ \
--insert sysprep-extra-options.pod:@EXTRA_OPTIONS@ \
--insert sysprep-operations.pod:@OPERATIONS@ \
$<
%.1: %.pod
$(PODWRAPPER) --man $@ $<
$(PODWRAPPER) \
--no-strict-checks \
--man $@ \
$<
%.3: %.pod
$(PODWRAPPER) \
--no-strict-checks \
--man $@ \
--section 3 \
$<
%.1: %.pl
$(PODWRAPPER) --man $@ $<
$(PODWRAPPER) \
--no-strict-checks \
--man $@ \
$<
# Ensure that the first time we build from git, since guestfs.pod
# hasn't been built yet, build it.