Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
beesh.sh: Use pbzip2 as external compressor if available
  • Loading branch information
thomas committed Aug 20, 2018
1 parent 4769f95 commit 6b1ee7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/beesh.sh.in
Expand Up @@ -668,6 +668,8 @@ function bee_pkg_pack() {


function bee_archivebuild() {
local TAROPTS='-j'

[ "${OPT_ARCHIVE_BUILD}" != "yes" ] && return

if [ ! -d "${BEE_BUILDARCHIVEDIR}" ] ; then
Expand All @@ -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 \
Expand Down

0 comments on commit 6b1ee7e

Please sign in to comment.