summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-03-18 22:38:59 +0100
committerJim Meyering <meyering@redhat.com>2011-03-18 22:44:32 +0100
commit23d970ea5f71fc8913d7e2a4d33b575b13b43fb9 (patch)
treea9495a3b1fb601126166c6e81cfc69eb2f181408 /man
parentffd622a2814e9f9d66ab3077d93107ff2f7266df (diff)
downloaddiffutils-23d970ea5f71fc8913d7e2a4d33b575b13b43fb9.tar.gz
doc: add a reference to wdiff(1) from diff.1
* man/diff.x: New file, to add "SEE ALSO" reference to wdiff(1). * man/Makefile.am (diff.1): Depend on diff.x. ($(dist_man1_MANS)): Tell help2man to include diff.x. (EXTRA_DIST): Add diff.x. Suggestion from Dan Jacobson in http://bugs.debian.org/613319
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am9
-rw-r--r--man/diff.x2
2 files changed, 8 insertions, 3 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 597572b..d3cff23 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -18,9 +18,11 @@
dist_man1_MANS = cmp.1 diff.1 diff3.1 sdiff.1
MAINTAINERCLEANFILES = $(dist_man1_MANS)
+EXTRA_DIST = diff.x
+
S = $(top_srcdir)/src
cmp.1: $S/cmp.c
-diff.1: $S/diff.c
+diff.1: $S/diff.c diff.x
diff3.1: $S/diff3.c
sdiff.1: $S/sdiff.c
@@ -28,5 +30,6 @@ sdiff.1: $S/sdiff.c
$(dist_man1_MANS): $(top_srcdir)/configure.ac
$(AM_V_GEN)base=`expr $@ : '\(.*\).1'` && \
(echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/; q' $S/$$base.c) | \
- $(HELP2MAN) -i - -S '$(PACKAGE) $(VERSION)' ../src/$$base | \
- sed 's/^\.B info .*/.B info diff/' >$@
+ $(HELP2MAN) -i - -i $(srcdir)/$$base.x -S '$(PACKAGE) $(VERSION)' \
+ ../src/$$base \
+ | sed 's/^\.B info .*/.B info diff/' >$@
diff --git a/man/diff.x b/man/diff.x
new file mode 100644
index 0000000..52e605c
--- /dev/null
+++ b/man/diff.x
@@ -0,0 +1,2 @@
+[SEE ALSO]
+wdiff(1)