diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2019-10-04 16:39:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2019-11-17 07:23:00 -0800 |
commit | 5c466eafa75dfa34ff63642d8762efab8c115a2d (patch) | |
tree | 9e4d5aeaff564db40ad2bb5ac76f5d9a52858f69 /t | |
parent | d010f76f6b7c8c5fd78099db530126748e04a738 (diff) | |
download | automake-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 't')
-rw-r--r-- | t/dist-formats.tap | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/dist-formats.tap b/t/dist-formats.tap index 588b22fe6..3a91160c5 100644 --- a/t/dist-formats.tap +++ b/t/dist-formats.tap @@ -20,7 +20,7 @@ am_create_testdir=empty . test-init.sh -plan_ 66 +plan_ 75 # ---------------------------------------------------- # # Common and/or auxiliary subroutines and variables. # @@ -60,6 +60,7 @@ setup_vars_for_compression_format () xz) suffix=tar.xz compressor=xz ;; bzip2) suffix=tar.bz2 compressor=bzip2 ;; zip) suffix=zip compressor=zip ;; + zstd) suffix=tar.zst compressor=zstd ;; *) fatal_ "invalid compression format '$1'";; esac } @@ -101,7 +102,7 @@ have_compressor () return 0 } -all_compression_formats='gzip lzip xz bzip2 zip' +all_compression_formats='gzip lzip xz bzip2 zip zstd' all_compressors=$( for x in $all_compression_formats; do @@ -294,6 +295,7 @@ nogzip in am and bzip2 in am nogzip in ac and xz in am nogzip in am and lzip in ac nogzip in ac and zip in ac +nogzip in ac and zstd in ac # ----------------------------------------------------------- # |