|
@@ -356,10 +356,10 @@ sub get_revdep ($) {
|
|
|
sub parse_options ($) {
|
|
sub parse_options ($) {
|
|
|
my($l) = @_;
|
|
my($l) = @_;
|
|
|
$l = join("\n", @$l) if ref $l;
|
|
$l = join("\n", @$l) if ref $l;
|
|
|
- return if ($l !~ m/(--define|%option)/s);
|
|
|
|
|
|
|
+ return if ($l !~ m/(--define|%option\s+)/s);
|
|
|
my $with = {};
|
|
my $with = {};
|
|
|
- $l =~ s/--define\s*'(\S+)\s+(\S+?)'/$with->{$1} = $2, ''/ge; # before openpkg-20021230
|
|
|
|
|
- $l =~ s/%option\s+(\S+)\s+(\S+)/$with->{$1} = $2, ''/ge; # after openpkg-20021230
|
|
|
|
|
|
|
+ $l =~ s/--define\s*'(\S+)\s+(\S+?)'/$with->{$1} = $2, ''/sge; # before openpkg-20021230
|
|
|
|
|
+ $l =~ s/%option\s+(\S+)\s+(\S+)/$with->{$1} = $2, ''/sge; # after openpkg-20021230
|
|
|
return $with;
|
|
return $with;
|
|
|
}
|
|
}
|
|
|
|
|
|