[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FYI: Generate bison.1
From: |
Akim Demaille |
Subject: |
Re: FYI: Generate bison.1 |
Date: |
Mon, 05 Nov 2007 17:10:57 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) |
I installed the following.
Index: ChangeLog
from Akim Demaille <address@hidden>
Remove Id: from bison.1.
* doc/Makefile.am (remove_time_stamp): Include the sed invocation.
(perl -0777 -pi -e 's/\.PP\nId): New.
(.x.1): Use it to ignore the version control revision.
Index: doc/Makefile.am
===================================================================
RCS file: /cvsroot/bison/bison/doc/Makefile.am,v
retrieving revision 1.17
diff -u -u -r1.17 Makefile.am
--- doc/Makefile.am 5 Nov 2007 06:38:00 -0000 1.17
+++ doc/Makefile.am 5 Nov 2007 16:09:52 -0000
@@ -58,7 +58,14 @@
srcsrcdir = $(top_srcdir)/bin
$(srcdir)/bison.1: $(common_dep) $(top_srcdir)/src/getargs.c
-remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
+# Output from --help and --version that must not appear in the man page.
+neutralize = \
+ perl -0777 -pi -e 's/\.PP\nId:.*\n//g'
+
+# Differences to ignore when comparing the man page (the date).
+remove_time_stamp = \
+ sed 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
+
MOSTLYCLEANFILES = $(srcdir)/*.t
@@ -81,8 +88,9 @@
--include=$*.x \
--include=$(srcdir)/common.x \
address@hidden `echo '$*' | sed 's,.*/,,'`
- if sed $(remove_time_stamp) $@ >address@hidden 2>/dev/null &&
\
- sed $(remove_time_stamp) address@hidden | cmp address@hidden -
>/dev/null 2>&1; then \
+ $(neutralize) address@hidden
+ if $(remove_time_stamp) $@ >address@hidden 2>/dev/null &&
\
+ $(remove_time_stamp) address@hidden | cmp address@hidden -
>/dev/null 2>&1; then \
touch $@; \
else \
mv address@hidden $@;
\
Index: doc/bison.1
===================================================================
RCS file: /cvsroot/bison/bison/doc/bison.1,v
retrieving revision 1.16
diff -u -u -r1.16 bison.1
--- doc/bison.1 4 Nov 2007 21:13:21 -0000 1.16
+++ doc/bison.1 5 Nov 2007 16:09:52 -0000
@@ -163,8 +163,6 @@
Written by Robert Corbett and Richard Stallman.
.SH "REPORTING BUGS"
Report bugs to <address@hidden>.
-.PP
-Id: ChangeLog,v 1.1748 2007/11/04 20:45:32 akim Exp
.SH COPYRIGHT
Copyright \(co 2007 Free Software Foundation, Inc.
.br