print "Building $version release, RCS ID $rcsid, previous RCS ID $oldid\n";
+if (system("./configure; make -C po update-po; make clean")) {
+ die("Failure in translation-file rebuild.")
+}
+
print "### Test-building the software...\n";
-if (system("su -c '(configure --disable-nls; make) $null' esr")) {
+if (system("configure --disable-nls; make")) {
die("Compilation failure\n");
}
print "### Building the distribution...\n";
-if (system("su -c 'make dist $null' esr")) {
+if (system("make dist $null")) {
die("Distribution-build failure\n");
}
die("RPM-build failure\n");
}
+# Clean up permissions so next build won't foo up.
+system("chown esr config.log stamp-h po/Makefile");
+
open(REPORT, ">PREAMBLE.$$");
print REPORT <<EOF;
The $version release of fetchmail is now available at the usual locations,
including <URL:http://$ENV{'WWWVIRTUAL'}/~esr/fetchmail>.
+The source archive is available at:
+<URL:http://$ENV{'WWWVIRTUAL'}/~esr/fetchmail/fetchmail-${version}.tar.gz>
+
Here are the release notes:
EOF
print "Making activity graph...";
growthplot;
+print "Making LSM...";
+$keywords="mail, client, POP, POP2, POP3, APOP, RPOP, KPOP, IMAP, ETRN, ODMR, SMTP, ESMTP, GSSAPI, RPA, NTLM, CRAM-MD5, SASL";
+system("rpm2lsm -k '$keywords' fetchmail-$version-1.i386.rpm >fetchmail.lsm");
+system("ls -l fetchmail.lsm");
+
+# Avoid leaving unwriteable files around
+system("chown -R esr .");
+
print "Done\n";
# makerelease ends here