bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 3/4] man/MKada_config.in: Fix content error.


From: G. Branden Robinson
Subject: [PATCH 3/4] man/MKada_config.in: Fix content error.
Date: Tue, 26 Sep 2023 07:03:49 -0500

Refer to tool using its ./configured name in the man page header and
examples, not a hard-coded one that may not (on my Debian GNU/Linux
system, does not) correspond to the command's name as installed.

Also wrap the now ultra-long `TH` input line.  Doing so does not appear
to defeat any sed(1) replacements.  That is, when building, I get

.TH adacurses6\-config 1 2023-09-17 \
"ncurses 6.4" "User commands"

...which works fine.
---
 man/MKada_config.in | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/man/MKada_config.in b/man/MKada_config.in
index ba30b57b..6f655b35 100644
--- a/man/MKada_config.in
+++ b/man/MKada_config.in
@@ -28,7 +28,8 @@
 .\"***************************************************************************
 .\"
 .\" $Id: MKada_config.in,v 1.22 2023/09/17 08:29:17 tom Exp $
-.TH ADACURSES 1 2023-09-17 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "User 
commands"
+.TH adacurses@USE_CFG_SUFFIX@\-config 1 2023-09-17 \
+"ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "User commands"
 .ds C adacurses@USE_CFG_SUFFIX@\-config
 .ie n .ds CW R
 .el   \{
@@ -110,14 +111,15 @@ end Hello;
 Then, using
 .RS
 .ft \*(CW
-gnatmake `adacurses-config --cflags` hello -largs `adacurses-config --libs`
+gnatmake `adacurses@USE_CFG_SUFFIX@-config --cflags` hello \e
+    -largs `adacurses@USE_CFG_SUFFIX@-config --libs`
 .ft
 .RE
 .PP
 or (simpler):
 .RS
 .ft \*(CW
-gnatmake hello `adacurses-config`
+gnatmake hello `adacurses@USE_CFG_SUFFIX@-config`
 .ft
 .RE
 .PP
-- 
2.30.2

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]