From: Stefano Lattarini Date: Sat, 11 Aug 2012 09:45:57 +0000 (+0200) Subject: [ng] dist: fixup: run slower compressors first X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a91c15c3a71d8bfa0398a0dfcab570f66a9a846a;p=thirdparty%2Fautomake.git [ng] dist: fixup: run slower compressors first For better parallelism in "make dist". This was already the case for mainline Automake, but our recent changes to the dist-related code in Automake-NG had broken that invariant. * automake.in (handle_dist): Here, use 'unshift' rather than 'push' on '@archive_formats'. Signed-off-by: Stefano Lattarini --- diff --git a/automake.in b/automake.in index 331c55307..366c16222 100644 --- a/automake.in +++ b/automake.in @@ -3217,10 +3217,10 @@ sub handle_dist () # We order @archive_formats by expected duration of the # compressors, slowest first, for better parallelism in # "make dist". - push @archive_formats, 'gzip' unless option 'no-dist-gzip'; + unshift @archive_formats, 'gzip' unless option 'no-dist-gzip'; foreach my $fmt (qw/shar zip tarZ bzip2 lzip xz/) { - push @archive_formats, $fmt if option "dist-$fmt"; + unshift @archive_formats, $fmt if option "dist-$fmt"; } # At least one of the archive formats must be enabled. if (@archive_formats == 0)