mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user