3 # Make a fetchmail release. Must be run as root, to make RPMs.
4 # Dumps a release notice and diffs as a MIME multipart message
9 $version=`grep 'VERSION *=' Makefile.in`;
10 $version =~ /VERSION *= *(.*)/;
15 open(ID, "rlog -h NEWS|");
17 last if /^symbolic names/;
26 if ($versions[0] eq $rcsid) {
27 $rcsid = $versions[0];
28 $oldid = $versions[1];
30 $rcsid = '<workfile>';
31 $oldid = $versions[0];
34 #$ENV{'PATH'} = "~esr/bin:/bin:/usr/bin";
36 print "Building $version release, RCS ID $rcsid, previous RCS ID $oldid\n";
38 print "Test-building the software...\n";
39 if (system("su -c 'make >/dev/null' esr")) {
40 die("Compilation failure\n");
43 print "Building the distribution...\n";
44 if (system("su -c 'make dist >/dev/null' esr")) {
45 die("Distribution-build failure\n");
48 print "Building the RPMs...\n";
49 if (system("make rpm >/dev/null 2>/dev/null && chown esr *.rpm")) {
50 die("RPM-build failure\n");
53 open(REPORT, ">PREAMBLE.$$");
56 From: esr\@thyrsus.com (Eric S. Raymond)
57 To: fetchmail-announce\@ccil.org
58 Reply-To: esr\@thyrsus.com (Eric S. Raymond)
59 Subject: The $version release of fetchmail is available
60 FCC: ~/postings/outmail
62 The $version release of fetchmail is now available at the usual locations,
63 including <URL:http://$ENV{'WWWVIRTUAL'}/~esr/fetchmail> and
64 <URL:ftp://ftp.ccil.org/pub/esr/fetchmail>.
66 Here are the release notes:
70 # Extract the current notes
89 By popular demand, diffs from the previous release have been omitted.
91 #Diffs from the previous ($oldrcs) release follow as a MIME attachment.
97 if ($rcsid eq '<workfile>') {
98 system("rcsdiff -u -r$oldid RCS/* 2>/dev/null >DIFFS.$$");
100 system("rcsdiff -u -r$oldid -r$rcsid RCS/* 2>/dev/null >DIFFS.$$");
103 rename("PREAMBLE.$$", "RELEASE.NOTES");
104 system("chown esr RELEASE.NOTES");
105 chmod(0700, "RELEASE.NOTES");
106 # If we ever want to go back to enclosing diffs.
107 #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";
109 unlink("PREAMBLE.$$");
112 print "Building index page...\n";
113 system("rm -f index.html; indexgen.sh");
115 print "Making activity graph...";
120 # makerelease ends here