aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-17 10:22:35 +0000
committermerakor <cem@ckyln.com>2020-03-17 10:22:35 +0000
commit9f2916dc3ecca781bb5084a2d997124026b13e8a (patch)
tree39df5d4c6b9fe019e1d8edd8cf7e46bdc3c30767
parente08cc60b8844593bfd0980c588319e59ab7cefd0 (diff)
downloadcpt-9f2916dc3ecca781bb5084a2d997124026b13e8a.tar.gz
add zstd compression
FossilOrigin-Name: c17adbba92fc156d8b80d76c45359660d1d1d882ff364a520a4504244d8e24ff
-rwxr-xr-xkiss6
1 files changed, 4 insertions, 2 deletions
diff --git a/kiss b/kiss
index 663bf65..6e398af 100755
--- 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}"