]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
do not ship uncompressed tarballs
authorKen Dreyer <ktdreyer@ktdreyer.com>
Wed, 31 Jul 2013 22:00:24 +0000 (16:00 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 21 Aug 2013 15:50:00 +0000 (08:50 -0700)
There's not much point to shipping uncompressed tarballs in 2013. Delete
them during "make-release".

Reviewed-on: http://gerrit.openafs.org/10116
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Ken Dreyer <ktdreyer@ktdreyer.com>
(cherry picked from commit 0346ed6f53a6f3fb5d75de41c7ec5a139727618f)

Change-Id: Ic1247c6a42ecb6a5c6bae1fd88b789a8b3e55d49
Reviewed-on: http://gerrit.openafs.org/10131
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
build-tools/make-release

index e2b235b2f202429fff080a89c6554ce31746fe2c..d35a27107fbe092f78971a97e550cc19f508fe16 100755 (executable)
@@ -84,9 +84,10 @@ if ($last) {
     push @toCompress, "$outDir/$name.diff";
 }
 
-my @toMD5 = @toCompress;
+my @toMD5;
 
-# Compress everything that needs squashing 
+# Compress everything that needs squashing,
+# and also set up a list for md5 checksumming.
 foreach my $file (@toCompress) {
     system("gzip < $file > $file.gz") == 0
        or die "Unable to create gzip file of '$file' : $!";
@@ -95,6 +96,14 @@ foreach my $file (@toCompress) {
     system("bzip2 < $file > $file.bz2") == 0
        or die "Unable to create bzip file of '$file' : $!";
     push @toMD5, "$file.bz2";
+
+    # Delete the uncompressed tar files.
+    if ($file =~ /\.tar$/) {
+      unlink($file);
+    } else {
+      # Otherwise, queue this file for md5 checksumming.
+      push @toMD5, $file;
+    }
 }
 
 foreach my $file (@toMD5) {