]> git.saurik.com Git - bison.git/blobdiff - build-aux/cross-options.pl
ChangeLog (2006-09-15): add Odd Arild Olsen's role for push.c.
[bison.git] / build-aux / cross-options.pl
index 2cec3696162e487e0bb0cae9b3d7859fd18348fd..58772775372fd17dcb8e2c0b3d41aa4b2d9517e8 100755 (executable)
@@ -28,9 +28,12 @@ while (<>)
             # put each word in @var, to build @var{name}[=@var{value}], not
             # @var{name[=value]}].
            $arg =~ s/(\w+)/\@var{$1}/g;
-           $arg = '[' . $arg . ']'
-               if $opt eq '[';
-           $option{"$long=$arg"} = $short ? "$short $arg" : '';
+           my $long_arg = "=$arg";
+           if ($opt eq '[') {
+             $long_arg = "[$long_arg]";
+             $arg = "[$arg]";
+           }
+           $option{"$long$long_arg"} = $short ? "$short $arg" : '';
        }
        else
        {