master - man: Preserve template variables in pre-generated pages.
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=270ed9bc9038b1cd2ff4f4a7177292621c591ede Commit: 270ed9bc9038b1cd2ff4f4a7177292621c591ede Parent: 0c74afa1c613537e5aed33ed230755cfe8b0ab03 Author: Alasdair G Kergon <[email protected]> AuthorDate: Thu Mar 16 23:08:59 2017 +0000 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Thu Mar 16 23:08:59 2017 +0000
man: Preserve template variables in pre-generated pages.
--- man/Makefile.in | 10 ++++++---- man/lvchange.8_pregen | 2 +- man/lvconvert.8_pregen | 2 +- man/lvcreate.8_pregen | 2 +- man/lvdisplay.8_pregen | 2 +- man/lvextend.8_pregen | 2 +- man/lvm-config.8_pregen | 2 +- man/lvm-dumpconfig.8_pregen | 2 +- man/lvm-fullreport.8_pregen | 2 +- man/lvm-lvpoll.8_pregen | 2 +- man/lvmconfig.8_pregen | 2 +- man/lvmdiskscan.8_pregen | 2 +- man/lvreduce.8_pregen | 2 +- man/lvremove.8_pregen | 2 +- man/lvrename.8_pregen | 2 +- man/lvresize.8_pregen | 2 +- man/lvs.8_pregen | 2 +- man/lvscan.8_pregen | 2 +- man/pvchange.8_pregen | 2 +- man/pvck.8_pregen | 2 +- man/pvcreate.8_pregen | 2 +- man/pvdisplay.8_pregen | 2 +- man/pvmove.8_pregen | 2 +- man/pvremove.8_pregen | 2 +- man/pvresize.8_pregen | 2 +- man/pvs.8_pregen | 2 +- man/pvscan.8_pregen | 2 +- man/vgcfgbackup.8_pregen | 6 +++--- man/vgcfgrestore.8_pregen | 2 +- man/vgchange.8_pregen | 2 +- man/vgck.8_pregen | 2 +- man/vgconvert.8_pregen | 2 +- man/vgcreate.8_pregen | 2 +- man/vgdisplay.8_pregen | 2 +- man/vgexport.8_pregen | 2 +- man/vgextend.8_pregen | 2 +- man/vgimport.8_pregen | 2 +- man/vgimportclone.8_pregen | 2 +- man/vgmerge.8_pregen | 2 +- man/vgmknodes.8_pregen | 2 +- man/vgreduce.8_pregen | 2 +- man/vgremove.8_pregen | 2 +- man/vgrename.8_pregen | 2 +- man/vgs.8_pregen | 2 +- man/vgscan.8_pregen | 2 +- man/vgsplit.8_pregen | 2 +- 46 files changed, 53 insertions(+), 51 deletions(-)
man/Makefile.in +6 -4
@@ -122,7 +122,7 @@ TESTMAN=test.gen include $(top_builddir)/make.tmpl -CLEAN_TARGETS+=$(MAN5) $(MAN7) $(MAN8) $(MAN8:%.8_gen=%.8) $(MAN8CLUSTER) \ +CLEAN_TARGETS+=$(MAN5) $(MAN7) $(MAN8) $(MAN8:%.8=%.8_gen) $(MAN8CLUSTER) \ $(MAN8SYSTEMD_GENERATORS) $(MAN8DM) $(MANGENERATOR) $(TESTMAN) DISTCLEAN_TARGETS+=$(FSADMMAN) $(BLKDEACTIVATEMAN) $(DMEVENTDMAN) \ $(LVMETADMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) $(CLVMDMAN) $(CMIRRORDMAN) \
@@ -150,12 +150,14 @@ $(TESTMAN): $(MANGENERATOR) SEE_ALSO=$(srcdir)/see_also.end +.PRECIOUS: %.8_gen + %.8_gen: $(srcdir)/%.8_des $(srcdir)/%.8_end $(MANGENERATOR) $(TESTMAN) ( \ if [ ! -s $(TESTMAN) ] ; then \ - echo "Copying pre-generated $@" ; \ + echo "Copying pre-generated template $@" ; \ else \ - echo "Generating $@" ; \ + echo "Generating template $@" ; \ fi \ ) ( \
@@ -222,7 +224,7 @@ install_all_man: install install_systemd_generators pregenerated_man: all for i in $(srcdir)/*.8_des; do \ CMD=`basename $$i .8_des`; \ - cat $${CMD}.8 > $(srcdir)/$$CMD.8_pregen ; \ + cat $${CMD}.8_gen > $(srcdir)/$$CMD.8_pregen ; \ done generate: pregenerated_man
man/lvchange.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVCHANGE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVCHANGE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvchange \- Change the attributes of logical volume(s) .
man/lvconvert.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVCONVERT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVCONVERT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvconvert \- Change logical volume layout .
man/lvcreate.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVCREATE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVCREATE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvcreate \- Create a logical volume .
man/lvdisplay.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVDISPLAY 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVDISPLAY 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvdisplay \- Display information about a logical volume .
man/lvextend.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVEXTEND 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVEXTEND 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvextend \- Add space to a logical volume .
man/lvm-config.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVM CONFIG 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVM CONFIG 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvm config \- Display and manipulate configuration information .
man/lvm-dumpconfig.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVM DUMPCONFIG 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVM DUMPCONFIG 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvm dumpconfig \- Display and manipulate configuration information .
man/lvm-fullreport.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVM FULLREPORT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVM FULLREPORT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvm fullreport \- Display full report .
man/lvm-lvpoll.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVM LVPOLL 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVM LVPOLL 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvm lvpoll \- Continue already initiated poll operation on a logical volume .
man/lvmconfig.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVMCONFIG 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVMCONFIG 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvmconfig \- Display and manipulate configuration information .
man/lvmdiskscan.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVMDISKSCAN 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVMDISKSCAN 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvmdiskscan \- List devices that may be used as physical volumes .
man/lvreduce.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVREDUCE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVREDUCE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvreduce \- Reduce the size of a logical volume .
man/lvremove.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVREMOVE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVREMOVE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvremove \- Remove logical volume(s) from the system .
man/lvrename.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVRENAME 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVRENAME 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvrename \- Rename a logical volume .
man/lvresize.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVRESIZE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVRESIZE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvresize \- Resize a logical volume .
man/lvs.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVS 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVS 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvs \- Display information about logical volumes .
man/lvscan.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH LVSCAN 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH LVSCAN 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME lvscan \- List all logical volumes in all volume groups .
man/pvchange.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVCHANGE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVCHANGE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvchange \- Change attributes of physical volume(s) .
man/pvck.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVCK 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVCK 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvck \- Check the consistency of physical volume(s) .
man/pvcreate.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVCREATE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVCREATE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvcreate \- Initialize physical volume(s) for use by LVM .
man/pvdisplay.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVDISPLAY 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVDISPLAY 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvdisplay \- Display various attributes of physical volume(s) .
man/pvmove.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVMOVE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVMOVE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvmove \- Move extents from one physical volume to another .
man/pvremove.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVREMOVE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVREMOVE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvremove \- Remove LVM label(s) from physical volume(s) .
man/pvresize.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVRESIZE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVRESIZE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvresize \- Resize physical volume(s) .
man/pvs.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVS 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVS 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvs \- Display information about physical volumes .
man/pvscan.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH PVSCAN 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH PVSCAN 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME pvscan \- List all physical volumes .
man/vgcfgbackup.8_pregen +3 -3
@@ -1,4 +1,4 @@ -.TH VGCFGBACKUP 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCFGBACKUP 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgcfgbackup \- Backup volume group configuration(s) .
@@ -16,7 +16,7 @@ See \fBvgcfgrestore\fP for information on using the back up files. In a default installation, each VG is backed up into a separate file -bearing the name of the VG in the directory \fI/etc/lvm/backup\fP. +bearing the name of the VG in the directory \fI#DEFAULT_BACKUP_DIR#\fP. To use an alternative back up file, use \fB\-f\fP. In this case, when backing up multiple VGs, the file name is treated as a template, with %s
@@ -25,7 +25,7 @@ replaced by the VG name. NB. This DOES NOT back up the data content of LVs. It may also be useful to regularly back up the files in -\fI/etc/lvm\fP. +\fI#DEFAULT_SYS_DIR#\fP. .SH USAGE \fBvgcfgbackup\fP .br
man/vgcfgrestore.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGCFGRESTORE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCFGRESTORE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgcfgrestore \- Restore volume group configuration .
man/vgchange.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGCHANGE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCHANGE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgchange \- Change volume group attributes .
man/vgck.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGCK 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCK 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgck \- Check the consistency of volume group(s) .
man/vgconvert.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGCONVERT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCONVERT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgconvert \- Change volume group metadata format .
man/vgcreate.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGCREATE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGCREATE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgcreate \- Create a volume group .
man/vgdisplay.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGDISPLAY 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGDISPLAY 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgdisplay \- Display volume group information .
man/vgexport.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGEXPORT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGEXPORT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgexport \- Unregister volume group(s) from the system .
man/vgextend.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGEXTEND 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGEXTEND 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgextend \- Add physical volumes to a volume group .
man/vgimport.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGIMPORT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGIMPORT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgimport \- Register exported volume group with system .
man/vgimportclone.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGIMPORTCLONE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGIMPORTCLONE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgimportclone \- Import a VG from cloned PVs .
man/vgmerge.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGMERGE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGMERGE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgmerge \- Merge volume groups .
man/vgmknodes.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGMKNODES 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGMKNODES 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgmknodes \- Create the special files for volume group devices in /dev .
man/vgreduce.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGREDUCE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGREDUCE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgreduce \- Remove physical volume(s) from a volume group .
man/vgremove.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGREMOVE 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGREMOVE 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgremove \- Remove volume group(s) .
man/vgrename.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGRENAME 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGRENAME 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgrename \- Rename a volume group .
man/vgs.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGS 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGS 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgs \- Display information about volume groups .
man/vgscan.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGSCAN 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGSCAN 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgscan \- Search for all volume groups .
man/vgsplit.8_pregen +1 -1
@@ -1,4 +1,4 @@ -.TH VGSPLIT 8 "LVM TOOLS 2.02.169(2)-git (2016-11-30)" "Red Hat, Inc." +.TH VGSPLIT 8 "LVM TOOLS #VERSION#" "Red Hat, Inc." .SH NAME vgsplit \- Move physical volumes into a new or existing volume group .