]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
Makefile.PL: put v2.0.0 release notes in NEWS
authorEric Wong <e@80x24.org>
Mon, 10 Nov 2025 02:18:06 +0000 (02:18 +0000)
committerEric Wong <e@80x24.org>
Tue, 11 Nov 2025 21:02:32 +0000 (21:02 +0000)
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

index 28d2583a3e2b60901c7066b06d361e5a7376bf00..3d5fe7c7e0be38dc84fb26de19e554d648432336 100644 (file)
@@ -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 <<EOM;
+E: \@RELEASES does not include `$version' in $0
+EOM
+}
 
 $v->{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 <meta@public-inbox.org>',
        ABSTRACT => 'an "archives first" approach to mailing lists',