From 6b1ee7e5a0d753b3bb14a5a946f6d91b645619a6 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 96d04fa..1d88910 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -668,6 +668,8 @@ function bee_pkg_pack() { function bee_archivebuild() { + local TAROPTS='-j' + [ "${OPT_ARCHIVE_BUILD}" != "yes" ] && return if [ ! -d "${BEE_BUILDARCHIVEDIR}" ] ; then @@ -683,7 +685,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 \