# Dumps a release notice and diffs as a MIME multipart message
# in RELEASE_NOTES
#
-$version=`grep VERS= Makefile.in`;
-$version =~ /VERS=(.*)/;
+$version=`grep 'VERSION *=' Makefile.in`;
+$version =~ /VERSION *= *(.*)/;
$version = $1;
$rcsid = $version;
$rcsid =~ tr/./-/;
open(REPORT, ">PREAMBLE.$$");
print REPORT <<EOF;
+From: esr\@thyrsus.com (Eric S. Raymond)
+To: fetchmail-announce\@ccil.org
+Reply-To: esr\@thyrsus.com (Eric S. Raymond)
+Subject: The $version release of fetchmail is available
+FCC: ~/postings/outmail
+
The $version release of fetchmail is now available at the usual locations,
-including http://www.ccil.org/~esr/fetchmail. Here are the release notes:
+including <URL:http://$ENV{'WWWVIRTUAL'}/~esr/fetchmail> and
+<URL:ftp://ftp.ccil.org/pub/esr/fetchmail>.
+
+Here are the release notes:
EOF
$oldrcs =~ tr/-/./;
print REPORT <<EOF;
-Diffs from the previous ($oldrcs) release follow as a MIME attachment.
+By popular demand, diffs from the previous release have been omitted.
EOF
+#Diffs from the previous ($oldrcs) release follow as a MIME attachment.
close(NEWS);
system("rcsdiff -u -r$oldid -r$rcsid RCS/* 2>/dev/null >DIFFS.$$");
}
-system "metasend -b -D 'fetchmail-$rcsid announcement' -m 'text/plain' -e 7bit -f PREAMBLE.$$ -n -D 'diff -u between -$oldrcs $rcsid' -m 'text/plain' -e 7bit -f DIFFS.$$ -o RELEASE_NOTES";
+rename("PREAMBLE.$$", "RELEASE.NOTES");
+system("chown esr RELEASE.NOTES");
+chmod(0700, "RELEASE.NOTES");
+# If we ever want to go back to enclosing diffs.
+#system "metasend -b -D 'fetchmail-$rcsid announcement' -m 'text/plain' -e 7bit -f PREAMBLE.$$ -n -D 'diff -u between -$oldrcs $rcsid' -m 'text/plain' -e 7bit -f DIFFS.$$ -o RELEASE_NOTES";
unlink("PREAMBLE.$$");
unlink("DIFFS.$$");
+print "Building index page...\n";
+system("rm -f index.html; indexgen.sh");
+
+print "Done\n";
+
# makerelease ends here