From: Akim Demaille Date: Fri, 21 Nov 2008 20:21:52 +0000 (+0100) Subject: Display the changes in cross-options.texi. X-Git-Tag: v2.7.90~1004 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/01466c3ebe1cdcc89a59aac157284409c2b441b5 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. --- diff --git a/ChangeLog b/ChangeLog index 3b3ac267..aaaefcd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-11-21 Akim Demaille + + 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 Improves options in the manual. diff --git a/build-aux/cross-options.pl b/build-aux/cross-options.pl index 478303d5..6d153a05 100755 --- a/build-aux/cross-options.pl +++ b/build-aux/cross-options.pl @@ -58,9 +58,12 @@ while () } } +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"; diff --git a/doc/local.mk b/doc/local.mk index a352459d..d1397904 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 $@ $@.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)