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.
This commit is contained in:
Akim Demaille
2008-11-21 21:21:52 +01:00
parent a7c09cba09
commit 01466c3ebe
3 changed files with 13 additions and 1 deletions

View File

@@ -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> 2008-11-20 Di-an Jan <dianj@freeshell.org>
Improves options in the manual. Improves options in the manual.

View File

@@ -58,9 +58,12 @@ while (<STDIN>)
} }
} }
my $sep = '';
foreach my $long (sort keys %option) foreach my $long (sort keys %option)
{ {
# Avoid trailing spaces. # Avoid trailing spaces.
print $sep;
$sep = "\n";
print '@item @option{', $long, "}\n\@tab"; print '@item @option{', $long, "}\n\@tab";
print ' @option{', $option{$long}, '}' if $option{$long}; print ' @option{', $option{$long}, '}' if $option{$long};
print "\n\@tab"; print "\n\@tab";

View File

@@ -29,10 +29,12 @@ clean-local:
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi
$(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL) $(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) $(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
$(top_builddir)/src/bison --help | \ $(top_builddir)/src/bison --help | \
perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
diff -u $@~ $@.tmp || true
mv $@.tmp $@ mv $@.tmp $@
MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI) MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)