diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-02-22 07:59:03 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-02-22 07:59:03 +0000 |
commit | 5b049e6ae8552065344b955a4162733c34ef561f (patch) | |
tree | c8ff28ed395d66a9d28d0feb847fe006cbe63845 /makerelease | |
parent | ca5af0d1491f848d04c6d94549cc56fa3e2d03f3 (diff) | |
download | fetchmail-5b049e6ae8552065344b955a4162733c34ef561f.tar.gz fetchmail-5b049e6ae8552065344b955a4162733c34ef561f.tar.bz2 fetchmail-5b049e6ae8552065344b955a4162733c34ef561f.zip |
Ready to make a release.
svn path=/trunk/; revision=3134
Diffstat (limited to 'makerelease')
-rwxr-xr-x | makerelease | 17 |
1 files changed, 16 insertions, 1 deletions
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.$$"); |