diff options
author | merakor <cem@ckyln.com> | 2021-03-12 14:22:14 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-03-12 14:22:14 +0000 |
commit | 7fa36c93443e6e9a07fcf2a4ab01dac62195d26c (patch) | |
tree | ca64ace0555686fe201d02952c02b5610303290d /contrib/cpt-export | |
parent | 340f3b125a04b8f97d24ef8ccf12aa3b441d80db (diff) | |
download | cpt-7fa36c93443e6e9a07fcf2a4ab01dac62195d26c.tar.gz |
cpt-export: add lzip support
FossilOrigin-Name: 4126aaa1d788431d3742cf1839703e54a23fa73a5eb8217815b9d1daec332c55
Diffstat (limited to 'contrib/cpt-export')
-rwxr-xr-x | contrib/cpt-export | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/cpt-export b/contrib/cpt-export index 0e7495b..300c7c4 100755 --- a/contrib/cpt-export +++ b/contrib/cpt-export @@ -32,7 +32,7 @@ read -r ver rel 2>/dev/null < \ ### environment variable. # Fallback to gzip if there is a typo -case "$CPT_COMPRESS" in bz2|gz|xz|zst) ;; *) CPT_COMPRESS=gz; esac +case "$CPT_COMPRESS" in bz2|gz|xz|zst|lz) ;; *) CPT_COMPRESS=gz; esac # Reset the argument list. pkg=$1 @@ -52,6 +52,7 @@ case "$CPT_COMPRESS" in gz) gzip -6 ;; xz) xz -zT 0 ;; zst) zstd -3 ;; + lz) lzip -6 ;; esac > "$tarball" printf 'tarball created in %s\n' "$tarball" |