I installed the following.

Index: ChangeLog
from  Akim Demaille  <[EMAIL PROTECTED]>

        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                                     \
            [EMAIL PROTECTED] `echo '$*' | sed 's,.*/,,'`
-       if sed $(remove_time_stamp) $@ >[EMAIL PROTECTED] 2>/dev/null &&        
             \
-          sed $(remove_time_stamp) [EMAIL PROTECTED] | cmp [EMAIL PROTECTED] - 
>/dev/null 2>&1; then \
+       $(neutralize) [EMAIL PROTECTED]
+       if $(remove_time_stamp) $@ >[EMAIL PROTECTED] 2>/dev/null &&            
     \
+          $(remove_time_stamp) [EMAIL PROTECTED] | cmp [EMAIL PROTECTED] - 
>/dev/null 2>&1; then     \
                touch $@;                                                    \
        else                                                                 \
                mv [EMAIL PROTECTED] $@;                                        
             \
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 <[EMAIL PROTECTED]>.
-.PP
-Id: ChangeLog,v 1.1748 2007/11/04 20:45:32 akim Exp
 .SH COPYRIGHT
 Copyright \(co 2007 Free Software Foundation, Inc.
 .br


Reply via email to