]> Pileus Git - ~andy/fetchmail/blobdiff - makerelease
LynxOS support.
[~andy/fetchmail] / makerelease
index 3a235ade6771449650f4a273447316067c9056e3..64050620d3005d8b84cdd915a0904b08c3c069f0 100755 (executable)
@@ -4,8 +4,8 @@
 # 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/./-/;
@@ -51,8 +51,17 @@ if (system("make rpm >/dev/null 2>/dev/null && chown esr *.rpm")) {
 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
 
@@ -75,8 +84,9 @@ $oldrcs = $oldid;
 $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);
 
@@ -88,9 +98,18 @@ if ($rcsid eq '<workfile>') {
     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