Skip to content

beesh.sh: use pbzip2 for saving build environment when available #23

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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