aboutsummaryrefslogtreecommitdiff
path: root/dev
diff options
context:
space:
mode:
authorTijo Thomas <tijoparacka@gmail.com>2015-04-23 17:23:15 -0400
committerSean Owen <sowen@cloudera.com>2015-04-23 17:23:15 -0400
commit6d0749cae301ee4bf37632d657de48e75548a523 (patch)
treef7e0ce9050962b422fd0ced733f7cb7a5fb8885f /dev
parentbaa83a9a6769c5e119438d65d7264dceb8d743d5 (diff)
downloadspark-6d0749cae301ee4bf37632d657de48e75548a523.tar.gz
spark-6d0749cae301ee4bf37632d657de48e75548a523.tar.bz2
spark-6d0749cae301ee4bf37632d657de48e75548a523.zip
[SPARK-7087] [BUILD] Fix path issue change version script
Author: Tijo Thomas <tijoparacka@gmail.com> Closes #5656 from tijoparacka/FIX_PATHISSUE_CHANGE_VERSION_SCRIPT and squashes the following commits: ab4f4b1 [Tijo Thomas] removed whitespace 24478c9 [Tijo Thomas] modified to provide the spark base dir while searching for pom and also while changing the vesrion no 7b8e10b [Tijo Thomas] Modified for providing the base directories while finding the list of pom files and also while changing the version no
Diffstat (limited to 'dev')
-rwxr-xr-xdev/change-version-to-2.10.sh6
-rwxr-xr-xdev/change-version-to-2.11.sh6
2 files changed, 6 insertions, 6 deletions
diff --git a/dev/change-version-to-2.10.sh b/dev/change-version-to-2.10.sh
index 15e0c73b42..c4adb1f96b 100755
--- a/dev/change-version-to-2.10.sh
+++ b/dev/change-version-to-2.10.sh
@@ -18,9 +18,9 @@
#
# Note that this will not necessarily work as intended with non-GNU sed (e.g. OS X)
-
-find . -name 'pom.xml' | grep -v target \
+BASEDIR=$(dirname $0)/..
+find $BASEDIR -name 'pom.xml' | grep -v target \
| xargs -I {} sed -i -e 's/\(artifactId.*\)_2.11/\1_2.10/g' {}
# Also update <scala.binary.version> in parent POM
-sed -i -e '0,/<scala\.binary\.version>2.11</s//<scala.binary.version>2.10</' pom.xml
+sed -i -e '0,/<scala\.binary\.version>2.11</s//<scala.binary.version>2.10</' $BASEDIR/pom.xml
diff --git a/dev/change-version-to-2.11.sh b/dev/change-version-to-2.11.sh
index c0a8cb4f82..d370019dec 100755
--- a/dev/change-version-to-2.11.sh
+++ b/dev/change-version-to-2.11.sh
@@ -18,9 +18,9 @@
#
# Note that this will not necessarily work as intended with non-GNU sed (e.g. OS X)
-
-find . -name 'pom.xml' | grep -v target \
+BASEDIR=$(dirname $0)/..
+find $BASEDIR -name 'pom.xml' | grep -v target \
| xargs -I {} sed -i -e 's/\(artifactId.*\)_2.10/\1_2.11/g' {}
# Also update <scala.binary.version> in parent POM
-sed -i -e '0,/<scala\.binary\.version>2.10</s//<scala.binary.version>2.11</' pom.xml
+sed -i -e '0,/<scala\.binary\.version>2.10</s//<scala.binary.version>2.11</' $BASEDIR/pom.xml