aboutsummaryrefslogtreecommitdiff
path: root/sbt
diff options
context:
space:
mode:
authorHolden Karau <holden@pigscanfly.ca>2014-01-06 23:45:27 -0800
committerHolden Karau <holden@pigscanfly.ca>2014-01-06 23:45:27 -0800
commit60a7a6b31a441f5f716091316f90819c62b22e70 (patch)
treeaf81b0eba300dad7c9f752aa0074e121f60f31d1 /sbt
parentb590adb2ad06fbb5f38c55aa16369c878d84839e (diff)
downloadspark-60a7a6b31a441f5f716091316f90819c62b22e70.tar.gz
spark-60a7a6b31a441f5f716091316f90819c62b22e70.tar.bz2
spark-60a7a6b31a441f5f716091316f90819c62b22e70.zip
Use awk to extract the version
Diffstat (limited to 'sbt')
-rwxr-xr-xsbt/sbt2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbt/sbt b/sbt/sbt
index 2c19987b92..22672f2346 100755
--- a/sbt/sbt
+++ b/sbt/sbt
@@ -2,7 +2,7 @@
# This script launches sbt for this project. If present it uses the system
# version of sbt. If there is no system version of sbt it attempts to download
# sbt locally.
-SBT_VERSION=0.12.4
+SBT_VERSION=`awk -F "=" '/sbt\\.version/ {print $2}' ./project/build.properties`
URL1=http://typesafe.artifactoryonline.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar
URL2=http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt-launch/${SBT_VERSION}/sbt-launch.jar
JAR=sbt/sbt-launch-${SBT_VERSION}.jar