1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-11 20:58:50 +03:00

man: use editline reference

When compiled with editline, refer this in man page as well
instead of readline.
This commit is contained in:
Zdenek Kabelac 2021-04-16 14:40:42 +02:00
parent 54f98c94b4
commit dc934b13b9
2 changed files with 16 additions and 6 deletions

View File

@ -132,6 +132,15 @@ SEE_ALSO=$(srcdir)/see_also.end
fi \ fi \
) > $@ ) > $@
#
# When EDITLINE_LIBS is defined, we are compiling with libedit
#
ifneq ("$(EDITLINE_LIBS)", "")
DEFAULT_LIBLINE=editline
else
DEFAULT_LIBLINE=readline
endif
define SUBSTVARS define SUBSTVARS
$(SED) -e "s+#VERSION#+$(LVM_VERSION)+" \ $(SED) -e "s+#VERSION#+$(LVM_VERSION)+" \
-e "s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+" \ -e "s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+" \
@ -144,6 +153,7 @@ $(SED) -e "s+#VERSION#+$(LVM_VERSION)+" \
-e "s+#DEFAULT_RUN_DIR#+$(DEFAULT_RUN_DIR)+" \ -e "s+#DEFAULT_RUN_DIR#+$(DEFAULT_RUN_DIR)+" \
-e "s+#DEFAULT_PID_DIR#+$(DEFAULT_PID_DIR)+" \ -e "s+#DEFAULT_PID_DIR#+$(DEFAULT_PID_DIR)+" \
-e "s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+" \ -e "s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+" \
-e "s+#DEFAULT_LIBLINE#+$(DEFAULT_LIBLINE)+" \
-e "s+#DEFAULT_MANGLING#+$(DEFAULT_MANGLING)+" $< > $@ -e "s+#DEFAULT_MANGLING#+$(DEFAULT_MANGLING)+" $< > $@
endef endef

View File

@ -24,11 +24,11 @@ kernel.
The lvm command, and other commands listed below, are the command-line The lvm command, and other commands listed below, are the command-line
tools for LVM. A separate manual page describes each command in detail. tools for LVM. A separate manual page describes each command in detail.
.P .P
If \fBlvm\fP is invoked with no arguments it presents a readline prompt If \fBlvm\fP is invoked with no arguments it presents a #DEFAULT_LIBLINE# prompt
(assuming it was compiled with readline support). (assuming it was compiled with #DEFAULT_LIBLINE# support).
LVM commands may be entered interactively at this prompt with LVM commands may be entered interactively at this prompt with
readline facilities including history and command name and option #DEFAULT_LIBLINE# facilities including history and command name and option
completion. Refer to \fBreadline\fP(3) for details. completion. Refer to \fB#DEFAULT_LIBLINE#\fP(3) for details.
.P .P
If \fBlvm\fP is invoked with argv[0] set to the name of a specific If \fBlvm\fP is invoked with argv[0] set to the name of a specific
LVM command (for example by using a hard or soft link) it acts as LVM command (for example by using a hard or soft link) it acts as
@ -409,7 +409,7 @@ Message text may also change.
. .
.TP .TP
.B HOME .B HOME
Directory containing \fI.lvm_history\fP if the internal readline Directory containing \fI.lvm_history\fP if the internal #DEFAULT_LIBLINE#
shell is invoked. shell is invoked.
.TP .TP
.B LVM_OUT_FD .B LVM_OUT_FD
@ -561,4 +561,4 @@ Prepends source file name and code line number with libdm debugging.
.P .P
.BR dmsetup (8), .BR dmsetup (8),
.BR dmstats (8), .BR dmstats (8),
.BR readline (3) .BR #DEFAULT_LIBLINE# (3)