From 900c10c24ace6cdb63c03d0128e7c3d18ce3dfb7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 10 Nov 2025 02:18:06 +0000 Subject: [PATCH] Makefile.PL: put v2.0.0 release notes in NEWS Oops, this missed the release. While we're at it, we'll ensure we don't make this mistake again by requiring the release version to appear in `@RELEASES'. --- Makefile.PL | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index 28d2583a3..3d5fe7c7e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -10,10 +10,18 @@ my @EXE_FILES = grep(m!^script/!, @manifest); my $v = {}; my $t = {}; +# XXX drop "PENDING" in .pod before updating this! +my $version = '3.0.0.PENDING'; + # do not sort -my @RELEASES = qw(v1.9.0 +my @RELEASES = qw(v2.0.0 v1.9.0 v1.8.0 v1.7.0 v1.6.1 v1.6.0 v1.5.0 v1.4.0 v1.3.0 v1.2.0 v1.1.0-pre1 v1.0.0); +if ($version =~ /\A[0-9\.]+\z/) { + grep(/\Av\Q$version\E\z/, @RELEASES) or die <{news_deps} = [ map { "Documentation/RelNotes/$_.eml" } @RELEASES ]; $v->{txt} = [ qw(INSTALL README COPYING TODO HACKING) ]; @@ -144,9 +152,7 @@ my $check_lexgrog = $lexgrog ? 'check-lexgrog' : ''; WriteMakefile( NAME => 'PublicInbox', # n.b. camel-case is not our choice - - # XXX drop "PENDING" in .pod before updating this! - VERSION => '2.0.0', + VERSION => $version, AUTHOR => 'public-inbox hackers ', ABSTRACT => 'an "archives first" approach to mailing lists', -- 2.47.3