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 30, 2018
1 parent 71c5157 commit c24f7de
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/beesh.sh.in
Expand Up @@ -667,6 +667,8 @@ function bee_pkg_pack() {


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

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

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

0 comments on commit c24f7de

Please sign in to comment.