Commit c45acfe9 authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

winemaker: Fix --single-target option parsing.

parent a6a8a034
...@@ -2702,8 +2702,9 @@ binmode(STDOUT, ":utf8"); ...@@ -2702,8 +2702,9 @@ binmode(STDOUT, ":utf8");
target_init(\@global_settings); target_init(\@global_settings);
foreach(@ARGV) { my @args = @ARGV;
my $arg=$_; while (@args>0) {
my $arg=shift @args;
# General options # General options
if ($arg eq "--nobanner") { if ($arg eq "--nobanner") {
$opt_no_banner=1; $opt_no_banner=1;
...@@ -2712,7 +2713,7 @@ foreach(@ARGV) { ...@@ -2712,7 +2713,7 @@ foreach(@ARGV) {
} elsif ($arg eq "--nobackup") { } elsif ($arg eq "--nobackup") {
$opt_backup=0; $opt_backup=0;
} elsif ($arg eq "--single-target") { } elsif ($arg eq "--single-target") {
$opt_single_target=shift @ARGV; $opt_single_target=shift @args;
} elsif ($arg eq "--lower-none") { } elsif ($arg eq "--lower-none") {
$opt_lower=$OPT_LOWER_NONE; $opt_lower=$OPT_LOWER_NONE;
} elsif ($arg eq "--lower-all") { } elsif ($arg eq "--lower-all") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment