diff options
author | Richard Levitte <levitte@openssl.org> | 2019-10-17 16:05:38 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-10-18 12:22:00 +0200 |
commit | f3866324f0e9bd33feb48aefbe18d8f465d8f2a2 (patch) | |
tree | 78b7948b6a2e7577c29c6f0a4f5b6cb178cb9a7f /util | |
parent | Configure: get version from the file 'VERSION' instead of 'opensslv.h' (diff) | |
download | openssl-f3866324f0e9bd33feb48aefbe18d8f465d8f2a2.tar.xz openssl-f3866324f0e9bd33feb48aefbe18d8f465d8f2a2.zip |
Generate include/openssl/opensslv.h
The added benefit is that the result becomes much simple, and easier to
digest for those that still rely on the pre-3.0 opensslv.h contents.
Fixes #10203
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10205)
Diffstat (limited to 'util')
-rwxr-xr-x | util/mkrc.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/util/mkrc.pl b/util/mkrc.pl index b4c53edf6b..8ff358857d 100755 --- a/util/mkrc.pl +++ b/util/mkrc.pl @@ -11,8 +11,11 @@ use warnings; use lib "."; use configdata; -my $cversion = "$config{major},$config{minor},$config{patch}"; -my $version = "$config{major}.$config{minor}.$config{patch}$config{prerelease}$config{build_metadata}"; +my $cversion = "$config{version}"; +my $version = "$config{full_version}"; + +# RC syntax for versions uses commas as separators, rather than period +$cversion =~ s|\.|,|g; my $filename = $ARGV[0]; my $description = "OpenSSL library"; |