mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 16:53:02 +00:00
Display the changes in cross-options.texi.
* build-aux/cross-options.pl ($sep): New, to separate items. * doc/Makefile.am ($(srcdir)/cross-options.texi): Use diff to display the changes.
This commit is contained in:
committed by
Joel E. Denny
parent
72183df4da
commit
fadb13b5b3
@@ -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/Makefile.am ($(srcdir)/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.
|
||||||
|
|||||||
@@ -61,9 +61,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";
|
||||||
|
|||||||
@@ -26,10 +26,12 @@ clean-local:
|
|||||||
|
|
||||||
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
|
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
|
||||||
$(srcdir)/cross-options.texi: $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
|
$(srcdir)/cross-options.texi: $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
|
||||||
-rm -f $@ $@.tmp
|
mv -f $@ $@~ || : >$@~
|
||||||
|
-rm -f $@.tmp
|
||||||
cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) bison
|
cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) bison
|
||||||
$(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 = $(srcdir)/cross-options.texi
|
MAINTAINERCLEANFILES = $(srcdir)/cross-options.texi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user