mirror of https://github.com/openssl/openssl
Configure: Allow quoted values in VERSION
Fixes #11618 Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/11624)
This commit is contained in:
parent
8d6fc5f4d2
commit
6a960a94cc
|
@ -286,7 +286,13 @@ collect_information(
|
||||||
qr/\s*(\w+)\s*=\s*(.*?)\s*$/ =>
|
qr/\s*(\w+)\s*=\s*(.*?)\s*$/ =>
|
||||||
sub {
|
sub {
|
||||||
# Only define it if there is a value at all
|
# Only define it if there is a value at all
|
||||||
$version{uc $1} = $2 if $2 ne '';
|
if ($2 ne '') {
|
||||||
|
my $k = $1;
|
||||||
|
my $v = $2;
|
||||||
|
# Some values are quoted. Trim the quotes
|
||||||
|
$v = $1 if $v =~ /^"(.*)"$/;
|
||||||
|
$version{uc $k} = $v;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"OTHERWISE" =>
|
"OTHERWISE" =>
|
||||||
sub { die "Something wrong with this line:\n$_\nin $srcdir/VERSION" },
|
sub { die "Something wrong with this line:\n$_\nin $srcdir/VERSION" },
|
||||||
|
|
Loading…
Reference in New Issue