]> Pileus Git - ~andy/fetchmail/blobdiff - makerelease
Ready to ship.
[~andy/fetchmail] / makerelease
index 74d286ddbdd0d1000a31b19cee4e3c51ca56dc12..a88ade577d17ff9d2c1e72e140231f95cfe27569 100755 (executable)
@@ -57,13 +57,17 @@ if ($versions[0] eq $rcsid) {
 
 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");
 }
 
@@ -72,6 +76,9 @@ if (system("make rpm $null && chown esr *.rpm")) {
        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;
@@ -84,6 +91,9 @@ FCC: ~/postings/outmail
 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
@@ -144,6 +154,14 @@ system("rm -f testservers.html; testservers-gen.sh >testservers.html");
 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