summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2020-01-05 11:23:17 -0800
committerJim Meyering <meyering@fb.com>2020-01-05 11:33:46 -0800
commit91eebc4b86d5815c8f76b7315ee065392e109600 (patch)
treeb3745c256f40918c7e2ce127f22abd66fb0e4081 /man
parent351f87d0c4b97eb48bcc28585a926045b437ab4e (diff)
downloaddiffutils-91eebc4b86d5815c8f76b7315ee065392e109600.tar.gz
doc: use program name, not "GNU", in the nroff/man header
* man/Makefile.am (dist_man1_MANS): Elide "GNU " prefix from the generated prog+one-line-summary, so that help2man uses the program name rather than "GNU" as the nroff "name". Reported by Dan Jacobson in http://bugs.gnu.org/38574.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index dfaa883..ab8da1d 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -33,7 +33,8 @@ bin_dir = ../src
$(dist_man1_MANS): $(SRC_VERSION_C) help2man
$(AM_V_GEN)base=`expr $@ : '\(.*\).1'` \
&& test -x $(bin_dir)/$$base \
- && (echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/; q' $S/$$base.c) \
+ && (echo '[NAME]' \
+ && sed 's@/\* *@@; s/-/\\-/;s/^GNU//; q' $S/$$base.c) \
| PATH="$(bin_dir)$(PATH_SEPARATOR)$$PATH" \
$(srcdir)/help2man -i - -i $(srcdir)/$$base.x \
-S '$(PACKAGE) $(VERSION)' $$base > $@-t && mv $@-t $@