Skip to content

Commit 99ba8a0

Browse files
committed
make issue: parallel compression
Signed-off-by: Øyvind Harboe <[email protected]>
1 parent 5bd5bff commit 99ba8a0

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

flow/util/makeIssue.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,17 @@ rm -f ${VARS_BASENAME}.sh ${VARS_BASENAME}.tcl ${VARS_BASENAME}.gdb || true
8282
$DIR/generate-vars.sh ${VARS_BASENAME}
8383

8484
echo "Archiving issue to $1_${ISSUE_TAG}.tar.gz"
85-
tar --ignore-failed-read -czhf $1_${ISSUE_TAG}.tar.gz \
85+
# if pigz is installed, use it instead of gzip
86+
if command -v pigz &> /dev/null; then
87+
COMPRESS=pigz
88+
else
89+
COMPRESS=gzip
90+
fi
91+
92+
echo "Using $COMPRESS to compress tar file"
93+
94+
tar --use-compress-program=${COMPRESS} \
95+
--ignore-failed-read -chf $1_${ISSUE_TAG}.tar.gz \
8696
--transform="s|^|$1_${ISSUE_TAG}/|S" \
8797
--transform="s|^$1_${ISSUE_TAG}${FLOW_HOME}/|$1_${ISSUE_TAG}/|S" \
8898
$LOG_DIR \

0 commit comments

Comments
 (0)