You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/03/28 21:33:39 UTC
git commit: fix path for jar, make sed actually work on OSX
Repository: spark
Updated Branches:
refs/heads/master 60abc2525 -> 75d46be5d
fix path for jar, make sed actually work on OSX
Author: Nick Lanham <ni...@afternight.org>
Closes #264 from nicklan/make-distribution-fixes and squashes the following commits:
172b981 [Nick Lanham] fix path for jar, make sed actually work on OSX
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/75d46be5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/75d46be5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/75d46be5
Branch: refs/heads/master
Commit: 75d46be5d61fb92a6db2efb9e3a690716ef521d3
Parents: 60abc25
Author: Nick Lanham <ni...@afternight.org>
Authored: Fri Mar 28 13:33:35 2014 -0700
Committer: Matei Zaharia <ma...@databricks.com>
Committed: Fri Mar 28 13:33:35 2014 -0700
----------------------------------------------------------------------
make-distribution.sh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/75d46be5/make-distribution.sh
----------------------------------------------------------------------
diff --git a/make-distribution.sh b/make-distribution.sh
index b07aef2..5c780fc 100755
--- a/make-distribution.sh
+++ b/make-distribution.sh
@@ -141,12 +141,11 @@ if [ "$SPARK_TACHYON" == "true" ]; then
cp -r "tachyon-${TACHYON_VERSION}"/src/main/java/tachyon/web/resources "$DISTDIR/tachyon/src/main/java/tachyon/web"
if [[ `uname -a` == Darwin* ]]; then
- # osx sed wants an empty argument to -i option of sed
- TACHYON_SED="sed -i ''"
+ # need to run sed differently on osx
+ nl=$'\n'; sed -i "" -e "s|export TACHYON_JAR=\$TACHYON_HOME/target/\(.*\)|# This is set for spark's make-distribution\\$nl export TACHYON_JAR=\$TACHYON_HOME/../jars/\1|" "$DISTDIR/tachyon/libexec/tachyon-config.sh"
else
- TACHYON_SED="sed -i"
+ sed -i "s|export TACHYON_JAR=\$TACHYON_HOME/target/\(.*\)|# This is set for spark's make-distribution\n export TACHYON_JAR=\$TACHYON_HOME/../jars/\1|" "$DISTDIR/tachyon/libexec/tachyon-config.sh"
fi
- $TACHYON_SED -e "s|export TACHYON_JAR=\$TACHYON_HOME/target/\(.*\)|# This is set for spark's make-distribution\n export TACHYON_JAR=\$TACHYON_HOME/../../jars/\1|" "$DISTDIR/tachyon/libexec/tachyon-config.sh"
popd > /dev/null
rm -rf $TMPD