summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-10-04 16:39:24 +0200
committerJim Meyering <meyering@fb.com>2019-11-17 07:23:00 -0800
commit5c466eafa75dfa34ff63642d8762efab8c115a2d (patch)
tree9e4d5aeaff564db40ad2bb5ac76f5d9a52858f69 /bin
parentd010f76f6b7c8c5fd78099db530126748e04a738 (diff)
downloadautomake-5c466eafa75dfa34ff63642d8762efab8c115a2d.tar.gz
dist: add dist-zstd option
Add support for using the zstd compression algorithm. Use a default compression setting of -19, and ".zst" as the suffix. * bin/automake.in (handle_dist): Add zstd to the list of known dist- suffixes. (preprocess_file): Map ZSTD to dist-zstd. * doc/automake.texi: Document the new option. * lib/Automake/Options.pm (_is_valid_easy_option): Add dist-zstd. * lib/am/distdir.am (dist-zstd): New rule. (?ZSTD?DIST_TARGETS): Add definition. (distcheck): Add a case for *.tar.zst*. * t/dist-formats.tap: Add tests. * NEWS: Mention the change.
Diffstat (limited to 'bin')
-rw-r--r--bin/automake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/automake.in b/bin/automake.in
index 06f4ee9b2..67a7a9578 100644
--- a/bin/automake.in
+++ b/bin/automake.in
@@ -3806,7 +3806,7 @@ sub handle_dist ()
{
my $archive_defined = option 'no-dist-gzip' ? 0 : 1;
$archive_defined ||=
- grep { option "dist-$_" } qw(shar zip tarZ bzip2 lzip xz);
+ grep { option "dist-$_" } qw(shar zip tarZ bzip2 lzip xz zstd);
error (option 'no-dist-gzip',
"no-dist-gzip specified but no dist-* specified,\n"
. "at least one archive format must be enabled")
@@ -6788,6 +6788,7 @@ sub preprocess_file
'GZIP' => ! option 'no-dist-gzip',
'SHAR' => !! option 'dist-shar',
'ZIP' => !! option 'dist-zip',
+ 'ZSTD' => !! option 'dist-zstd',
'INSTALL-INFO' => ! option 'no-installinfo',
'INSTALL-MAN' => ! option 'no-installman',