fixup-NEWS.md-release.pl 511 B

12345678910111213141516
  1. #! /usr/bin/env perl -p
  2. BEGIN {
  3. our $count = 1; # Only the first one
  4. our $RELEASE = $ENV{RELEASE};
  5. our $RELEASE_TEXT = $ENV{RELEASE_TEXT};
  6. our $RELEASE_DATE = $ENV{RELEASE_DATE};
  7. $RELEASE_DATE = 'in pre-release'
  8. if ($RELEASE =~ /\d+\.\d+\.\d+-(?:alpha|beta)/)
  9. }
  10. if (/^### Major changes between OpenSSL (\S+) and OpenSSL (\S+) \[under development\]/
  11. && $count-- > 0) {
  12. $_ = "### Major changes between OpenSSL $1 and OpenSSL $RELEASE_TEXT [$RELEASE_DATE]$'";
  13. }