From c24f7deb1d7ecc37394d9a15b2ffc6b72f92495d Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 20 Aug 2018 13:42:58 +0200 Subject: [PATCH] beesh.sh: Use pbzip2 as external compressor if available --- src/beesh.sh.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/beesh.sh.in b/src/beesh.sh.in index 831c2ef..653af9b 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -667,6 +667,8 @@ function bee_pkg_pack() { function bee_archivebuild() { + local TAROPTS='-j' + [ "${OPT_ARCHIVE_BUILD}" != "yes" ] && return if [ ! -d "${BEE_BUILDARCHIVEDIR}" ] ; then @@ -682,7 +684,11 @@ function bee_archivebuild() { B=${BEEWORKDIR}/build fi - tar -cjf ${archive} \ + if type -p pbzip2 > /dev/null ; then + TAROPTS="-I pbzip2" + fi + + tar ${TAROPTS} -cf ${archive} \ --show-transformed-names \ --sparse \ --absolute-names \