mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* NEWS (2.3a+): Mention. * doc/bison.texinfo (Bison Options): Add an entry. * src/files.c (compute_output_file_names): Don't override spec_verbose_file if already set. * src/getargs.c (usage): Document --report-file. (REPORT_FILE_OPTION): New anonymous enum member. (long_options): Add entry for it. (getargs): Add case for it setting spec_verbose_file. * build-aux/cross-options.pl: Don't record a short option just because there's an arg. * doc/.cvsignore: Add yacc.1.
33 lines
617 B
Perl
Executable File
33 lines
617 B
Perl
Executable File
#! /usr/bin/env perl
|
|
|
|
use warnings;
|
|
use 5.005;
|
|
use strict;
|
|
|
|
my %option;
|
|
while (<>)
|
|
{
|
|
if (/^\s*(?:(-\w), )?(--[-\w]+)(\[?)(=[-\w]+)?\]?/)
|
|
{
|
|
my ($short, $long, $opt, $arg) = ($1, $2, $3, $4);
|
|
$short = defined $short ? '@option{' . $short . '}' : '';
|
|
if ($arg)
|
|
{
|
|
$arg =~ s/^=//;
|
|
$arg = '@var{' . lc ($arg) . '}';
|
|
$arg = '[' . $arg . ']'
|
|
if defined $opt;
|
|
$option{"$long=$arg"} = $short ? "$short $arg" : '';
|
|
}
|
|
else
|
|
{
|
|
$option{"$long"} = "$short";
|
|
}
|
|
}
|
|
}
|
|
|
|
foreach my $long (sort keys %option)
|
|
{
|
|
printf "\@item %-40s \@tab %s\n", '@option{' . $long . '}', $option{$long};
|
|
}
|