]> git.saurik.com Git - bison.git/commitdiff
Display the changes in cross-options.texi.
authorAkim Demaille <demaille@gostai.com>
Fri, 21 Nov 2008 20:21:52 +0000 (21:21 +0100)
committerAkim Demaille <demaille@gostai.com>
Fri, 21 Nov 2008 20:25:16 +0000 (21:25 +0100)
* build-aux/cross-options.pl ($sep): New, to separate items.
* doc/local.mk ($(CROSS_OPTIONS_TEXI)): Use diff to display the
changes.

ChangeLog
build-aux/cross-options.pl
doc/local.mk

index 3b3ac2674452591cacf76e55194b09d6a02b6c93..aaaefcd508444cc55bd793dd4987f21c5b31ec43 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-11-21  Akim Demaille  <demaille@gostai.com>
+
+       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  <dianj@freeshell.org>
 
        Improves options in the manual.
index 478303d5665c1cd969a17f6b079dd29ed1892a50..6d153a05dbb35930f16e5cf2a5fdbfeb37a5ed9b 100755 (executable)
@@ -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, "}\n\@tab";
     print ' @option{', $option{$long}, '}' if $option{$long};
     print "\n\@tab";
index a352459d7b476105ea845f835f8e6b83c5519fc7..d13979049f67edb464875f0c4421beb978fc7983 100644 (file)
@@ -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 $@ $@.tmp
+       mv -f $@ $@~ || : >$@~
+       -rm -f $@.tmp
        $(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
        $(top_builddir)/src/bison --help |                              \
        perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
+       diff -u $@~ $@.tmp || true
        mv $@.tmp $@
 MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)