1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

Merge pull request #134 from konimex/master

kiss-export: respect KISS_COMPRESS
This commit is contained in:
dylan 2020-04-14 11:10:11 +00:00 committed by GitHub
commit e0270efa08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,11 @@ while read -r file; do
done < "$KISS_ROOT/var/db/kiss/installed/$pkg/manifest"
# Turn the list of files back into a package.
tar czf "$pkg#$ver-$rel.tar.gz" -C / -- "$@"
tar cf - -C / -- "$@" | case ${KISS_COMPRESS:-gz} in
bz2) bzip2 -z ;;
gz) gzip -6 ;;
xz) xz -zT 0 ;;
zst) zstd -z ;;
esac > "$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"
printf 'tarball created in %s\n' "$PWD/$pkg#$ver-$rel.tar.gz"
printf 'tarball created in %s\n' "$PWD/$pkg#$ver-$rel.tar.${KISS_COMPRESS:-gz}"