]>
git.saurik.com Git - bison.git/blob - build-aux/cross-options.pl
10 if (/^\s*(?:(-\w), )?(--[-\w]+)(\[?)(=[-\w]+)?\]?/)
12 my ($short, $long, $opt, $arg) = ($1, $2, $3, $4);
13 $short = defined $short ? '@option{' . $short . '}' : '';
17 $arg = '@var{' . lc ($arg) . '}';
18 $arg = '[' . $arg . ']'
20 $option{"$long=$arg"} = $short ? "$short $arg" : '';
24 $option{"$long"} = "$short";
29 foreach my $long (sort keys %option)
31 printf "\@item %-40s \@tab %s\n", '@option{' . $long . '}', $option{$long};