bison-patches
[Top][All Lists]
Advanced

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

[PATCH] Display the changes in cross-options.texi.


From: Akim Demaille
Subject: [PATCH] Display the changes in cross-options.texi.
Date: Fri, 21 Nov 2008 21:21:52 +0100

        * build-aux/cross-options.pl ($sep): New, to separate items.
        * doc/local.mk ($(CROSS_OPTIONS_TEXI)): Use diff to display the
        changes.
---
 ChangeLog                  |    7 +++++++
 build-aux/cross-options.pl |    3 +++
 doc/local.mk               |    4 +++-
 3 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3b3ac26..aaaefcd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-21  Akim Demaille  <address@hidden>
+
+       Display the changes in cross-options.texi.
+       * build-aux/cross-options.pl ($sep): New, to separate items.
+       * doc/local.mk ($(CROSS_OPTIONS_TEXI)): Use diff to display the
+       changes.
+
 2008-11-20  Di-an Jan  <address@hidden>
 
        Improves options in the manual.
diff --git a/build-aux/cross-options.pl b/build-aux/cross-options.pl
index 478303d..6d153a0 100755
--- a/build-aux/cross-options.pl
+++ b/build-aux/cross-options.pl
@@ -58,9 +58,12 @@ while (<STDIN>)
     }
 }
 
+my $sep = '';
 foreach my $long (sort keys %option)
 {
     # Avoid trailing spaces.
+    print $sep;
+    $sep = "\n";
     print '@item @option{', $long, "address@hidden";
     print ' @option{', $option{$long}, '}' if $option{$long};
     print "address@hidden";
diff --git a/doc/local.mk b/doc/local.mk
index a352459..d139790 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -29,10 +29,12 @@ clean-local:
 CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
 CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi
 $(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
-       -rm -f $@ address@hidden
+       mv -f $@ address@hidden || : >address@hidden
+       -rm -f address@hidden
        $(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
        $(top_builddir)/src/bison --help |                              \
        perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >address@hidden
+       diff -u address@hidden address@hidden || true
        mv address@hidden $@
 MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)
 
-- 
1.6.0.2.588.g3102





reply via email to

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