Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 8265d7d

Browse files
committed
[PIO-153] Allow use of GNU tar on non-GNU systems
Closes #469
1 parent 718ebe2 commit 8265d7d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

make-distribution.sh

+6-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ cp -r ${DISTDIR} ${TARDIR}
112112
cp LICENSE.txt ${TARDIR}
113113
cp NOTICE.txt ${TARDIR}
114114

115-
tar zcvf ${TARNAME} ${TARDIR}
115+
# Allows override for `tar` command
116+
# This enables using GNU tar on systems such as macOS
117+
if [ -z "$TAR" ] ; then
118+
TAR=tar
119+
fi
120+
$TAR zcvf ${TARNAME} ${TARDIR}
116121
rm -rf ${TARDIR}
117122

118123
echo -e "\033[0;32mPredictionIO binary distribution created at $TARNAME\033[0m"

0 commit comments

Comments
 (0)