aboutsummaryrefslogtreecommitdiff
path: root/dev/change-version-to-2.10.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dev/change-version-to-2.10.sh')
-rwxr-xr-xdev/change-version-to-2.10.sh6
1 files changed, 3 insertions, 3 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