You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@predictionio.apache.org by do...@apache.org on 2018/09/27 17:03:21 UTC

predictionio git commit: [PIO-153] Allow use of GNU tar on non-GNU systems

Repository: predictionio
Updated Branches:
  refs/heads/develop 718ebe2e8 -> 8265d7d75


[PIO-153] Allow use of GNU tar on non-GNU systems

Closes #469


Project: http://git-wip-us.apache.org/repos/asf/predictionio/repo
Commit: http://git-wip-us.apache.org/repos/asf/predictionio/commit/8265d7d7
Tree: http://git-wip-us.apache.org/repos/asf/predictionio/tree/8265d7d7
Diff: http://git-wip-us.apache.org/repos/asf/predictionio/diff/8265d7d7

Branch: refs/heads/develop
Commit: 8265d7d75022c86f7db12a6fd02b4fa3e4bbb3ea
Parents: 718ebe2
Author: Donald Szeto <do...@apache.org>
Authored: Thu Sep 27 10:01:06 2018 -0700
Committer: Donald Szeto <do...@apache.org>
Committed: Thu Sep 27 10:01:06 2018 -0700

----------------------------------------------------------------------
 make-distribution.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/predictionio/blob/8265d7d7/make-distribution.sh
----------------------------------------------------------------------
diff --git a/make-distribution.sh b/make-distribution.sh
index 7a34274..7d94a79 100755
--- a/make-distribution.sh
+++ b/make-distribution.sh
@@ -112,7 +112,12 @@ cp -r ${DISTDIR} ${TARDIR}
 cp LICENSE.txt ${TARDIR}
 cp NOTICE.txt ${TARDIR}
 
-tar zcvf ${TARNAME} ${TARDIR}
+# Allows override for `tar` command
+# This enables using GNU tar on systems such as macOS
+if [ -z "$TAR" ] ; then
+  TAR=tar
+fi
+$TAR zcvf ${TARNAME} ${TARDIR}
 rm -rf ${TARDIR}
 
 echo -e "\033[0;32mPredictionIO binary distribution created at $TARNAME\033[0m"