]>
git.saurik.com Git - bison.git/blob - build-aux/cross-options.pl
4c941b04c339978a75aa361f5875e4a62807dd00
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 $arg";
24 $option{"$long"} = "$short";
29 foreach my $long (sort keys %option)
31 printf "\@item %-40s \@tab %s\n", '@option{' . $long . '}', $option{$long};