>From 1a76a5c680ab539c992d06f9d10166781fdef0d2 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Sat, 29 Dec 2018 11:54:24 -0600 Subject: [PATCH 4/5] * make-dist: Add option for zstd compression --- make-dist | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/make-dist b/make-dist index 926665b8f0..761477a83b 100755 --- a/make-dist +++ b/make-dist @@ -99,6 +99,10 @@ verbose= "--xz") default_gzip="xz" ;; + ## Same with zstd. + "--zstd") + default_gzip="zstd" + ;; "--no-compress") default_gzip="cat" ;; @@ -125,6 +129,7 @@ verbose= echo " --bzip2 use bzip2 instead of gzip" echo " --clean-up delete staging directories when done" echo " --xz use xz instead of gzip" + echo " --zstd use zstd instead of gzip" echo " --no-compress don't compress" echo " --newer=TIME don't include files older than TIME" echo " --no-check don't check for bad file names etc." @@ -684,7 +689,8 @@ files= fi case "${default_gzip}" in bzip2) gzip_extension=.bz2 ;; - xz) gzip_extension=.xz ;; + xz) gzip_extension=.xz ;; + zstd) gzip_extension=.zst; default_gzip="zstd -19q --rm" ;; gzip) gzip_extension=.gz ; default_gzip="gzip --best --no-name";; *) gzip_extension= ;; esac -- 2.20.1