From 5b049e6ae8552065344b955a4162733c34ef561f Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 22 Feb 2001 07:59:03 +0000 Subject: Ready to make a release. svn path=/trunk/; revision=3134 --- makerelease | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/makerelease b/makerelease index 1e7c3105..f1e0521f 100755 --- a/makerelease +++ b/makerelease @@ -6,6 +6,19 @@ # $timezone = "-0500"; +$diffs = 0; +while ($i = shift @ARGV) +{ + if ($i =~ /^(--diffs|-d)$/i) + { + $diffs = 1; + next; + } + + die "Error: Unknown option: $i\n"; +} + + $version=`grep 'VERSION *=' Makefile.in`; $version =~ /VERSION *= *(.*)/; $version = $1; @@ -105,7 +118,9 @@ 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"; +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"; +} unlink("PREAMBLE.$$"); unlink("DIFFS.$$"); -- cgit v1.2.3