diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-10-01 03:29:55 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-10-01 03:29:55 +0000 |
commit | 7d7b6cc1ed2da8a98cdecc634930ebc162bbda66 (patch) | |
tree | e24b708a12f9201ee15bf20c7f73640727604c81 /makerelease | |
parent | 6d89b0999610377005bea4902dcc814d0abc2cde (diff) | |
download | fetchmail-7d7b6cc1ed2da8a98cdecc634930ebc162bbda66.tar.gz fetchmail-7d7b6cc1ed2da8a98cdecc634930ebc162bbda66.tar.bz2 fetchmail-7d7b6cc1ed2da8a98cdecc634930ebc162bbda66.zip |
MIME-ize the release message.
svn path=/trunk/; revision=1452
Diffstat (limited to 'makerelease')
-rwxr-xr-x | makerelease | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/makerelease b/makerelease index 3e011b9e..3a235ade 100755 --- a/makerelease +++ b/makerelease @@ -1,7 +1,8 @@ #!/usr/bin/perl # # Make a fetchmail release. Must be run as root, to make RPMs. -# Dumps a release notice and diffs in RELEASE_NOTES +# Dumps a release notice and diffs as a MIME multipart message +# in RELEASE_NOTES # $version=`grep VERS= Makefile.in`; $version =~ /VERS=(.*)/; @@ -47,7 +48,7 @@ if (system("make rpm >/dev/null 2>/dev/null && chown esr *.rpm")) { die("RPM-build failure\n"); } -open(REPORT, ">RELEASE_NOTES"); +open(REPORT, ">PREAMBLE.$$"); print REPORT <<EOF; The $version release of fetchmail is now available at the usual locations, @@ -70,16 +71,26 @@ while (<NEWS>) { print REPORT $_; } -print REPORT "\nDiffs from the previous ($oldid) release:\n\n"; +$oldrcs = $oldid; +$oldrcs =~ tr/-/./; +print REPORT <<EOF; + +Diffs from the previous ($oldrcs) release follow as a MIME attachment. +EOF close(NEWS); close(REPORT); if ($rcsid eq '<workfile>') { - system("rcsdiff -u -r$oldid RCS/* 2>/dev/null >>RELEASE_NOTES"); + system("rcsdiff -u -r$oldid RCS/* 2>/dev/null >DIFFS.$$"); } else { - system("rcsdiff -u -r$oldid -r$rcsid RCS/* 2>/dev/null >>RELEASE_NOTES"); + 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"; + +unlink("PREAMBLE.$$"); +unlink("DIFFS.$$"); + # makerelease ends here |