summaryrefslogtreecommitdiff
path: root/man/local.mk
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2013-09-12 00:02:33 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2013-09-12 08:02:22 +0200
commitb3578fc9ffe70b9466687f9f6470a85f1a0ab14f (patch)
tree1ea4777060688a5b7d15c093ca49dfe058c32caa /man/local.mk
parent321933e14fbe05cd212d78de0beefdde64b5966b (diff)
downloadcoreutils-b3578fc9ffe70b9466687f9f6470a85f1a0ab14f.tar.xz
maint: avoid patching help2man
Commit cde1ea0e separated the coreutils-specific patches from help2man. Most changes had been made to accommodate to the coreutils style guide, i.e., to avoid syntax-check failures like sc_long_lines. Yet 2 changes had to be put into the patch help2man.diff. But this added the dependency to patch(1) in distribution builds. Incidentally, the 2 remaining parts of the patch can easily be done outside of help2man. Therefore, this commit partly reverts the recent separation of help2man into 'help2man.in' and 'help2man.diff', and instead uses the original help2man script. * man/help2man.in: Rename to ... * man/help2man: ... this file. * man/help2man.diff: Remove. * man/local.mk (mandeps): Remove man/help2man. (man/help2man): Remove recipe. (.x.1): Add the --info-page option when calling help2man in order to change the name of the texinfo manual from the default, "info PRG", to "info coreutils 'PRG invocation'". Furthermore, use an sed pattern to remove the sentence starting with "For complete documentation". * .gitignore (/man/help2man): Remove entry. * .x-update-copyright: Replace the entries for the files 'man/help2man.diff' and 'man/help2man.in' by 'man/help2man'. * cfg.mk (sc_long_lines): Instead of 'man/help2man.in', exempt 'man/help2man' from this test. (sc_po_check): Likewise. (sc_space_tab): Instead of 'man/help2man.diff', exempt 'man/help2man' from this test. (sc_trailing_blank): Likewise. (sc_prohibit_tab_based_indentation): Instead of 'man/help2man.in' and 'man/help2man.diff', exempt 'man/help2man'. * man/dummy-man: Recognize the option --info-page=... as no-op.
Diffstat (limited to 'man/local.mk')
-rw-r--r--man/local.mk16
1 files changed, 5 insertions, 11 deletions
diff --git a/man/local.mk b/man/local.mk
index d967d1636..266b780f9 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -50,9 +50,6 @@ distclean-local:
# Dependencies common to all man pages. Updated below.
mandeps =
-# Depend on the help2man script.
-mandeps += man/help2man
-
# Depend on this to get version number changes.
mandeps += .version
@@ -62,13 +59,6 @@ mandeps += $(top_srcdir)/src/system.h
$(ALL_MANS): $(mandeps)
-# Create help2man from the upstream version and out patch.
-man/help2man: man/help2man.in man/help2man.diff
- $(AM_V_GEN)cp man/help2man.in man/help2man.tmp \
- && VERSION_CONTROL=none patch man/help2man.tmp < man/help2man.diff \
- && chmod a+x man/help2man.tmp \
- && mv man/help2man.tmp man/help2man
-
# Most prog.1 man pages depend on src/prog. List the exceptions:
# Note that dir and vdir are exceptions only if you consider the name
# of the .c file upon which they depend: ls.c.
@@ -200,7 +190,11 @@ man/yes.1: src/yes
--source='$(PACKAGE_STRING)' \
--include=$(srcdir)/man/$$name.x \
--output=$$t/$$name.1 $$t/$$name \
- && sed 's|$*\.td/||g' $$t/$$name.1 > $@-t \
+ --info-page='coreutils \(aq'$$name' invocation\(aq' \
+ && sed \
+ -e 's|$*\.td/||g' \
+ -e '/For complete documentation/d' \
+ $$t/$$name.1 > $@-t \
&& rm -rf $$t \
&& chmod a-w $@-t \
&& mv $@-t $@