bug-diffutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-diffutils] Re: stop changing the whitespace in RELEASE-NOTES please


From: Jim Meyering
Subject: [bug-diffutils] Re: stop changing the whitespace in RELEASE-NOTES please
Date: Fri, 18 Mar 2011 22:45:05 +0100

address@hidden wrote:
> One wishes the diff man page would say SEE ALSO wdiff(1), and
> visa-versa, lest I go every stupidly writing my own program again.

Good idea.
Now diff.1 does say SEE ALSO wdiff(1):

>From be5181ff3f322f0fb73a0bf67369f9b3c427bd2d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Fri, 18 Mar 2011 22:38:59 +0100
Subject: [PATCH] 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
---
 man/Makefile.am |    9 ++++++---
 man/diff.x      |    2 ++
 2 files changed, 8 insertions(+), 3 deletions(-)
 create mode 100644 man/diff.x

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)
--
1.7.4.1.494.g5ddab



reply via email to

[Prev in Thread] Current Thread [Next in Thread]