]> Sergey Matveev's repositories - public-inbox.git/blobdiff - Documentation/mknews.perl
pop3: reduce memory use while generating the mailbox cache
[public-inbox.git] / Documentation / mknews.perl
index 510a4e1810558e5a74efdbdd4386bdb81b00644c..1936cea72ae9a8b03d2046707375882795755b8c 100755 (executable)
@@ -1,5 +1,5 @@
 #!/usr/bin/perl -w
-# Copyright (C) 2019-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2019-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 # Generates NEWS, NEWS.atom, and NEWS.html files using release emails
 # this uses unstable internal APIs of public-inbox, and this script
@@ -43,7 +43,7 @@ if ($dst eq 'NEWS') {
        );
        $ibx->{-primary_address} = $addr;
        my $ctx = {
-               -inbox => $ibx,
+               ibx => $ibx,
                -upfx => "$base_url/",
                -hr => 1,
        };
@@ -119,10 +119,10 @@ sub html_start {
 }
 
 sub html_end {
-       print $out <<EOF or die;
-       git clone $PublicInbox::WwwStream::CODE_URL
-</pre></body></html>
-EOF
+       for (@$PublicInbox::WwwStream::CODE_URL) {
+               print $out "    git clone $_\n" or die;
+       }
+       print $out "</pre></body></html>\n" or die;
 }
 
 sub atom_start {
@@ -131,7 +131,7 @@ sub atom_start {
        # WwwAtomStream stats this dir for mtime
        my $astream = PublicInbox::WwwAtomStream->new($ctx);
        delete $astream->{emit_header};
-       my $ibx = $ctx->{-inbox};
+       my $ibx = $ctx->{ibx};
        my $title = PublicInbox::WwwAtomStream::title_tag($ibx->description);
        my $updated = PublicInbox::WwwAtomStream::feed_updated($mtime);
        print $out <<EOF or die;