mirror of
https://github.com/openssl/openssl.git
synced 2024-12-21 06:09:35 +08:00
0d4c52320d
Otherwise the NEWS.md and CHANGES.md will contain trailing spaces.
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17304)
(cherry picked from commit 132ab70fd8
)
29 lines
800 B
Perl
29 lines
800 B
Perl
#! /usr/bin/env perl -pi
|
|
|
|
BEGIN {
|
|
our $count = 1; # Only the first one
|
|
our $RELEASE = $ENV{RELEASE};
|
|
our $RELEASE_TEXT = $ENV{RELEASE_TEXT};
|
|
our $PREV_RELEASE_DATE = $ENV{PREV_RELEASE_DATE} || 'under development';
|
|
our $PREV_RELEASE_TEXT = $ENV{PREV_RELEASE_TEXT};
|
|
|
|
$RELEASE =~ s/-dev//;
|
|
}
|
|
|
|
if (/^### Major changes between OpenSSL (\S+) and OpenSSL (\S+) \[under development\]/
|
|
&& $count-- > 0) {
|
|
my $v1 = $1;
|
|
my $v2 = $PREV_RELEASE_TEXT || $2;
|
|
|
|
# If this is a pre-release, we do nothing
|
|
if ($RELEASE !~ /^\d+\.\d+\.\d+-(?:alpha|beta)/) {
|
|
$_ = <<_____
|
|
### Major changes between OpenSSL $v2 and OpenSSL $RELEASE_TEXT [under development]
|
|
|
|
* none
|
|
|
|
### Major changes between OpenSSL $v1 and OpenSSL $v2 [$PREV_RELEASE_DATE]
|
|
_____
|
|
}
|
|
}
|