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 <stefano.lattar...@gmail.com>
---
 automake.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/automake.in b/automake.in
index 331c553..366c162 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)
-- 
1.7.12.rc0


Reply via email to