diff options
author | merakor <cem@ckyln.com> | 2020-03-17 10:22:35 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-03-17 10:22:35 +0000 |
commit | 9f2916dc3ecca781bb5084a2d997124026b13e8a (patch) | |
tree | 39df5d4c6b9fe019e1d8edd8cf7e46bdc3c30767 | |
parent | e08cc60b8844593bfd0980c588319e59ab7cefd0 (diff) | |
download | cpt-9f2916dc3ecca781bb5084a2d997124026b13e8a.tar.gz |
add zstd compression
FossilOrigin-Name: c17adbba92fc156d8b80d76c45359660d1d1d882ff364a520a4504244d8e24ff
-rwxr-xr-x | kiss | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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}" |