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.lattarini@gmail.com>
# 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)