Browse Source

util/mkrc.pl: Make sure FILEVERSION and PRODUCTVERSION have four numbers

Partially fixes #13414

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13415)
master
Richard Levitte 11 months ago
parent
commit
c7d32b6ba5
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      util/mkrc.pl

+ 4
- 2
util/mkrc.pl View File

@ -14,8 +14,10 @@ use configdata;
my $cversion = "$config{version}";
my $version = "$config{full_version}";
# RC syntax for versions uses commas as separators, rather than period
$cversion =~ s|\.|,|g;
# RC syntax for versions uses commas as separators, rather than period,
# and it must have exactly 4 numbers (16-bit integers).
my @vernums = ( split(/\./, $cversion), 0, 0, 0, 0 );
$cversion = join(',', @vernums[0..3]);
my $filename = $ARGV[0];
my $description = "OpenSSL library";


Loading…
Cancel
Save