summaryrefslogtreecommitdiff
path: root/man/local.mk
diff options
context:
space:
mode:
authorBernhard Voelker <mail@bernhard-voelker.de>2013-08-02 08:28:50 +0200
committerBernhard Voelker <mail@bernhard-voelker.de>2013-09-09 22:52:18 +0200
commit54a155a37ea2736671bbbf5bf45446425314a77a (patch)
treeaa70828752ab7f4cc730fc3aee0b6f80f2d53a41 /man/local.mk
parentb86437e1262f5e171db2d7372a4e13cd621ab706 (diff)
downloadcoreutils-54a155a37ea2736671bbbf5bf45446425314a77a.tar.xz
maint: update help2man to 1.43.3
Instead of diverging further from the upstream GNU help2man project (http://www.gnu.org/software/help2man/), hold a copy of the original script and keep track of our changes in a separate patch file. The man pages created with the new version show the following, non-invasive differences: a) command options in the EXAMPLE sections are no longer in bold format, b) file names are underlined now consistently. * man/help2man: Rename to ... * man/help2man.in: ... this file, and update content from the upstream GNU help2man project. * man/help2man.diff: Add patch file for help2man to remove the sentence "For complete documentation ..." (see commit 5d4f09d8), and to emit "info coreutils 'PROG invocation'" into the man pages (77abf69a). * man/local.mk (mandeps): Add help2man to the dependencies of the man pages. (man/help2man): Add rule to generate this script from the upstream help2man.in file and the help2man.diff patch. * .gitignore: Add man/help2man as it is no longer version controlled. * cfg.mk (sc_long_lines): Exempt help2man.in from this check. (sc_po_check): Likewise. (sc_space_tab): Likewise. (sc_trailing_blank): Exempt man/help2man.diff from this check. (sc_prohibit_tab_based_indentation): Instead of help2man, now exempt both help2man.in and help2man.diff from this test. * .x-update-copyright: Add new file and add the above new help2man files as well as the COPYING file.
Diffstat (limited to 'man/local.mk')
-rw-r--r--man/local.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/man/local.mk b/man/local.mk
index 53debad46..d967d1636 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -50,6 +50,9 @@ 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
@@ -59,6 +62,13 @@ 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.