mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
podwrapper: Add --warning flag for manual pages of CLI tools (RHBZ#1293527).
This doesn't add --warning flags to the translated pages, which is a bug to be fixed at some point.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -552,6 +552,7 @@ Makefile.in
|
||||
/test-tool/libguestfs-test-tool.1
|
||||
/test-tool/libguestfs-test-tool-helper
|
||||
/test-tool/stamp-libguestfs-test-tool.pod
|
||||
/tools/stamp-virt-*.pod
|
||||
/tools/virt-*.1
|
||||
/v2v/.depend
|
||||
/v2v/centos-6.img
|
||||
|
||||
@@ -85,6 +85,7 @@ stamp-virt-alignment-scan.pod: virt-alignment-scan.pod
|
||||
--man virt-alignment-scan.1 \
|
||||
--html $(top_builddir)/website/virt-alignment-scan.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -134,6 +134,7 @@ stamp-libguestfs-make-fixed-appliance.pod: libguestfs-make-fixed-appliance.pod
|
||||
--man libguestfs-make-fixed-appliance.1 \
|
||||
--html $(top_builddir)/website/libguestfs-make-fixed-appliance.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -227,6 +227,7 @@ stamp-virt-builder.pod: virt-builder.pod $(top_srcdir)/customize/customize-synop
|
||||
--insert $(top_srcdir)/customize/customize-synopsis.pod:__CUSTOMIZE_SYNOPSIS__ \
|
||||
--insert $(top_srcdir)/customize/customize-options.pod:__CUSTOMIZE_OPTIONS__ \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -364,6 +365,7 @@ stamp-virt-index-validate.pod: virt-index-validate.pod
|
||||
--man virt-index-validate.1 \
|
||||
--html $(top_builddir)/website/virt-index-validate.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -160,6 +160,7 @@ stamp-virt-cat.pod: virt-cat.pod
|
||||
--man virt-cat.1 \
|
||||
--html $(top_builddir)/website/virt-cat.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -170,6 +171,7 @@ stamp-virt-filesystems.pod: virt-filesystems.pod
|
||||
--man virt-filesystems.1 \
|
||||
--html $(top_builddir)/website/virt-filesystems.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -180,6 +182,7 @@ stamp-virt-log.pod: virt-log.pod
|
||||
--man virt-log.1 \
|
||||
--html $(top_builddir)/website/virt-log.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -190,6 +193,7 @@ stamp-virt-ls.pod: virt-ls.pod
|
||||
--man virt-ls.1 \
|
||||
--html $(top_builddir)/website/virt-ls.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -161,6 +161,7 @@ stamp-virt-customize.pod: virt-customize.pod $(top_srcdir)/customize/customize-s
|
||||
--insert $(top_srcdir)/customize/customize-synopsis.pod:__CUSTOMIZE_SYNOPSIS__ \
|
||||
--insert $(top_srcdir)/customize/customize-options.pod:__CUSTOMIZE_OPTIONS__ \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -88,6 +88,7 @@ stamp-virt-df.pod: virt-df.pod
|
||||
--man virt-df.1 \
|
||||
--html $(top_builddir)/website/virt-df.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -121,6 +121,7 @@ stamp-virt-dib.pod: virt-dib.pod
|
||||
--man virt-dib.1 \
|
||||
--html $(top_builddir)/website/virt-dib.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ stamp-virt-diff.pod: virt-diff.pod
|
||||
--man virt-diff.1 \
|
||||
--html $(top_builddir)/website/virt-diff.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -77,6 +77,7 @@ stamp-virt-edit.pod: virt-edit.pod
|
||||
--man virt-edit.1 \
|
||||
--html $(top_builddir)/website/virt-edit.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -16,12 +16,6 @@ Old-style:
|
||||
|
||||
virt-edit disk.img [disk.img ...] file
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
You must I<not> use C<virt-edit> on live virtual machines. If you do
|
||||
this, you risk disk corruption in the VM. C<virt-edit> tries to stop
|
||||
you from doing this, but doesn't catch all cases.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
C<virt-edit> is a command line tool to edit C<file> where each C<file>
|
||||
|
||||
@@ -211,6 +211,7 @@ stamp-guestfish.pod: guestfish.pod guestfish-actions.pod guestfish-commands.pod
|
||||
--insert $(srcdir)/guestfish-commands.pod:__FISH_COMMANDS__ \
|
||||
--insert $(srcdir)/guestfish-prepopts.pod:__PREPOPTS__ \
|
||||
--license GPLv2+ \
|
||||
--warning ro-option \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -232,6 +233,7 @@ stamp-virt-copy-in.pod: virt-copy-in.pod
|
||||
--man virt-copy-in.1 \
|
||||
--html $(top_builddir)/website/virt-copy-in.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -242,6 +244,7 @@ stamp-virt-copy-out.pod: virt-copy-out.pod
|
||||
--man virt-copy-out.1 \
|
||||
--html $(top_builddir)/website/virt-copy-out.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -252,6 +255,7 @@ stamp-virt-tar-in.pod: virt-tar-in.pod
|
||||
--man virt-tar-in.1 \
|
||||
--html $(top_builddir)/website/virt-tar-in.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -262,6 +266,7 @@ stamp-virt-tar-out.pod: virt-tar-out.pod
|
||||
--man virt-tar-out.1 \
|
||||
--html $(top_builddir)/website/virt-tar-out.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -18,13 +18,6 @@ guestfish - the guest filesystem shell
|
||||
|
||||
guestfish -d libvirt-domain -i
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
Using guestfish in read/write mode on live virtual machines can be
|
||||
dangerous, potentially causing disk corruption. Use the I<--ro>
|
||||
(read-only) option to use guestfish safely if the disk image or
|
||||
virtual machine might be live.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
Guestfish is a shell and command-line tool for examining and modifying
|
||||
|
||||
@@ -8,12 +8,6 @@ virt-copy-in - Copy files and directories into a virtual machine disk image.
|
||||
|
||||
virt-copy-in -d domain file|dir [file|dir ...] /destination
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
Using C<virt-copy-in> on live virtual machines can be dangerous,
|
||||
potentially causing disk corruption. The virtual machine must be
|
||||
shut down before you use this command.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
C<virt-copy-in> copies files and directories from the local disk into
|
||||
|
||||
@@ -10,12 +10,6 @@ virt-tar-in - Unpack a tarball into a virtual machine disk image.
|
||||
|
||||
zcat data.tar.gz | virt-tar-in -d domain - /destination
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
Using C<virt-tar-in> on live virtual machines can be dangerous,
|
||||
potentially causing disk corruption. The virtual machine must be shut
|
||||
down before you use this command.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine
|
||||
|
||||
@@ -73,6 +73,7 @@ stamp-virt-format.pod: virt-format.pod
|
||||
--man virt-format.1 \
|
||||
--html $(top_builddir)/website/virt-format.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@ stamp-guestmount.pod: guestmount.pod
|
||||
--man guestmount.1 \
|
||||
--html $(top_builddir)/website/guestmount.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning ro-option \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -123,6 +124,7 @@ stamp-guestunmount.pod: guestunmount.pod
|
||||
--man guestunmount.1 \
|
||||
--html $(top_builddir)/website/guestunmount.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -10,11 +10,6 @@ guestmount - Mount a guest filesystem on the host using FUSE and libguestfs
|
||||
|
||||
guestmount [--options] -d Guest -i [--ro] mountpoint
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
You must I<not> use C<guestmount> in read-write mode on live virtual
|
||||
machines. If you do this, you risk disk corruption in the VM.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
The guestmount program can be used to mount virtual machine
|
||||
|
||||
@@ -120,6 +120,7 @@ stamp-virt-get-kernel.pod: virt-get-kernel.pod
|
||||
--man virt-get-kernel.1 \
|
||||
--html $(top_builddir)/website/virt-get-kernel.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -102,6 +102,7 @@ stamp-virt-inspector.pod: virt-inspector.pod
|
||||
--man virt-inspector.1 \
|
||||
--html $(top_builddir)/website/virt-inspector.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ stamp-virt-make-fs.pod: virt-make-fs.pod
|
||||
--man virt-make-fs.1 \
|
||||
--html $(top_builddir)/website/virt-make-fs.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ stamp-virt-p2v.pod: virt-p2v.pod
|
||||
--man virt-p2v.1 \
|
||||
--html $(top_builddir)/website/virt-p2v.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -142,6 +143,7 @@ stamp-virt-p2v-make-disk.pod: virt-p2v-make-disk.pod
|
||||
--man virt-p2v-make-disk.1 \
|
||||
--html $(top_builddir)/website/virt-p2v-make-disk.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -152,6 +154,7 @@ stamp-virt-p2v-make-kickstart.pod: virt-p2v-make-kickstart.pod
|
||||
--man virt-p2v-make-kickstart.1 \
|
||||
--html $(top_builddir)/website/virt-p2v-make-kickstart.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -108,6 +108,10 @@ guestfs.3: guestfs.pod guestfs-actions.pod guestfs-availability.pod guestfs-stru
|
||||
--insert $(srcdir)/guestfs-structs.pod:__STRUCTS__ \
|
||||
$<
|
||||
|
||||
# XXX --warning parameter is not passed, so no WARNING section is
|
||||
# generated in any translated manual. To fix this we need to expand
|
||||
# out all the %.1 pattern rules below.
|
||||
|
||||
guestfish.1: guestfish.pod guestfish-actions.pod guestfish-commands.pod guestfish-prepopts.pod
|
||||
$(PODWRAPPER) \
|
||||
--no-strict-checks \
|
||||
|
||||
@@ -75,6 +75,7 @@ stamp-virt-rescue.pod: virt-rescue.pod
|
||||
--man virt-rescue.1 \
|
||||
--html $(top_builddir)/website/virt-rescue.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning ro-option \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -16,16 +16,6 @@ Old style:
|
||||
|
||||
virt-rescue [--options] disk.img [disk.img ...]
|
||||
|
||||
=head1 WARNING
|
||||
|
||||
You must I<not> use C<virt-rescue> on live virtual machines. Doing so
|
||||
will probably result in disk corruption in the VM. C<virt-rescue>
|
||||
tries to stop you from doing this, but doesn't catch all cases.
|
||||
|
||||
However if you use the I<--ro> (read only) option, then you can attach
|
||||
a shell to a live virtual machine. The results might be strange or
|
||||
inconsistent at times but you won't get disk corruption.
|
||||
|
||||
=head1 DESCRIPTION
|
||||
|
||||
virt-rescue is like a Rescue CD, but for virtual machines, and without
|
||||
|
||||
@@ -122,6 +122,7 @@ stamp-virt-resize.pod: virt-resize.pod
|
||||
--man virt-resize.1 \
|
||||
--html $(top_builddir)/website/virt-resize.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -118,6 +118,7 @@ stamp-virt-sparsify.pod: virt-sparsify.pod
|
||||
--man virt-sparsify.1 \
|
||||
--html $(top_builddir)/website/virt-sparsify.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -188,6 +188,7 @@ stamp-virt-sysprep.pod: virt-sysprep.pod sysprep-extra-options.pod sysprep-opera
|
||||
--insert sysprep-operations.pod:__OPERATIONS__ \
|
||||
--html $(top_builddir)/website/virt-sysprep.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning general \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@ stamp-libguestfs-test-tool.pod: libguestfs-test-tool.pod
|
||||
--man libguestfs-test-tool.1 \
|
||||
--html $(top_builddir)/website/libguestfs-test-tool.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -39,24 +39,55 @@ bin_SCRIPTS = $(tools:%=virt-%)
|
||||
|
||||
# Manual pages and HTML files for the website.
|
||||
|
||||
# XXX Bug in automake? If you list virt-tar.1 explicitly, then it
|
||||
# builds and installs the man pages. However if this is removed,
|
||||
# then the man pages are neither built nor installed.
|
||||
man_MANS = virt-tar.1 $(patsubst %,virt-%.1,$(filter-out tar,$(tools)))
|
||||
man_MANS = \
|
||||
virt-list-filesystems.1 \
|
||||
virt-list-partitions.1 \
|
||||
virt-tar.1 \
|
||||
virt-win-reg.1
|
||||
|
||||
noinst_DATA = $(tools:%=$(top_builddir)/website/virt-%.1.html)
|
||||
virt-list-filesystems.1 $(top_builddir)/website/virt-list-filesystems.1.html: stamp-virt-list-filesystems.pod
|
||||
|
||||
virt-%.1: virt-%
|
||||
stamp-virt-list-filesystems.pod: virt-list-filesystems
|
||||
$(PODWRAPPER) \
|
||||
--man $@ \
|
||||
--man virt-list-filesystems.1 \
|
||||
--html $(top_builddir)/website/virt-list-filesystems.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
$(top_builddir)/website/virt-%.1.html: virt-%
|
||||
virt-list-partitions.1 $(top_builddir)/website/virt-list-partitions.1.html: stamp-virt-list-partitions.pod
|
||||
|
||||
stamp-virt-list-partitions.pod: virt-list-partitions
|
||||
$(PODWRAPPER) \
|
||||
--html $@ \
|
||||
--man virt-list-partitions.1 \
|
||||
--html $(top_builddir)/website/virt-list-partitions.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
virt-tar.1 $(top_builddir)/website/virt-tar.1.html: stamp-virt-tar.pod
|
||||
|
||||
stamp-virt-tar.pod: virt-tar
|
||||
$(PODWRAPPER) \
|
||||
--man virt-tar.1 \
|
||||
--html $(top_builddir)/website/virt-tar.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning custom \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
virt-win-reg.1 $(top_builddir)/website/virt-win-reg.1.html: stamp-virt-win-reg.pod
|
||||
|
||||
stamp-virt-win-reg.pod: virt-win-reg
|
||||
$(PODWRAPPER) \
|
||||
--man virt-win-reg.1 \
|
||||
--html $(top_builddir)/website/virt-win-reg.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning custom \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
# Tests.
|
||||
|
||||
|
||||
@@ -247,6 +247,7 @@ stamp-virt-v2v.pod: virt-v2v.pod
|
||||
--man virt-v2v.1 \
|
||||
--html $(top_builddir)/website/virt-v2v.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
@@ -257,6 +258,7 @@ stamp-virt-v2v-copy-to-local.pod: virt-v2v-copy-to-local.pod
|
||||
--man virt-v2v-copy-to-local.1 \
|
||||
--html $(top_builddir)/website/virt-v2v-copy-to-local.1.html \
|
||||
--license GPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
@@ -143,6 +143,7 @@ stamp-virt-v2v-test-harness.pod: virt-v2v-test-harness.pod
|
||||
--man virt-v2v-test-harness.1 \
|
||||
--html $(top_builddir)/website/virt-v2v-test-harness.1.html \
|
||||
--license LGPLv2+ \
|
||||
--warning safe \
|
||||
$<
|
||||
touch $@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user