From 91eebc4b86d5815c8f76b7315ee065392e109600 Mon Sep 17 00:00:00 2001
From: Jim Meyering <meyering@fb.com>
Date: Sun, 5 Jan 2020 11:23:17 -0800
Subject: [PATCH] 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.
---
 man/Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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 $@
-- 
2.24.0.390.g083378cc35

