cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 266047ff274ef2a2361d6d7b8e08e23698b7e1e7
parent ede78027bfb43adeafb50327723b037ce35ea974
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue, 17 Mar 2020 13:22:36 +0300

add zstd compression

Diffstat:
Mkiss | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kiss b/kiss @@ -90,9 +90,10 @@ run_hook() { decompress() { case $1 in - *.bz2) bzip2 -d ;; + *.bz2) bzip2 -d ;; *.xz) xz -dcT 0 ;; - *.tgz|*.gz) gzip -d ;; + *.tgz|*.gz) gzip -d ;; + *.zst) zstd -d ;; esac < "$1" } @@ -516,6 +517,7 @@ pkg_tar() { bz2) bzip2 -z ;; xz) xz -zT 0 ;; gz) gzip -6 ;; + zst) zstd -3 ;; esac \ > "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}"