aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-22 08:14:14 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-22 08:14:14 +0000
commitac99749bc7259df8c75e5114359d03e36db9c3d1 (patch)
tree3972746e64e80297ba0531a9507d8a028b89ce06
parent5b049e6ae8552065344b955a4162733c34ef561f (diff)
downloadfetchmail-ac99749bc7259df8c75e5114359d03e36db9c3d1.tar.gz
fetchmail-ac99749bc7259df8c75e5114359d03e36db9c3d1.tar.bz2
fetchmail-ac99749bc7259df8c75e5114359d03e36db9c3d1.zip
We can make either with or without diffs now.
svn path=/trunk/; revision=3136
-rwxr-xr-xmakerelease21
1 files changed, 11 insertions, 10 deletions
diff --git a/makerelease b/makerelease
index f1e0521f..bef7ae2f 100755
--- a/makerelease
+++ b/makerelease
@@ -96,11 +96,12 @@ while (<NEWS>) {
$oldrcs = $oldid;
$oldrcs =~ tr/-/./;
-print REPORT <<EOF;
-By popular demand, diffs from the previous release have been omitted.
-EOF
-#Diffs from the previous ($oldrcs) release follow as a MIME attachment.
+if ($diffs) {
+ print REPORT "Diffs from the previous ($oldrcs) release follow as a MIME attachment."
+} else {
+ print REPORT "By popular demand, diffs from the previous release have been omitted."
+}
close(NEWS);
@@ -114,15 +115,15 @@ if ($rcsid eq '<workfile>') {
print "Diff size:";
system("wc <DIFFS.$$");
-rename("PREAMBLE.$$", "RELEASE.NOTES");
-system("chown esr RELEASE.NOTES");
-chmod(0700, "RELEASE.NOTES");
-# If we ever want to go back to enclosing diffs.
if ($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";
+ 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";
+} else {
+ rename("PREAMBLE.$$", "RELEASE.NOTES");
}
+system("chown esr RELEASE.NOTES");
+chmod(0700, "RELEASE.NOTES");
-unlink("PREAMBLE.$$");
+#unlink("PREAMBLE.$$");
unlink("DIFFS.$$");
print "Building index page...\n";