From 06ba676c7dcba424246a276f63bcf23962a8e1f9 Mon Sep 17 00:00:00 2001 From: Krzysztof Romanowski Date: Fri, 30 Jan 2015 14:09:29 +0100 Subject: Fix intellij 14 setup script to read scala version from version.properties --- src/intellij-14/scala.ipr.SAMPLE | 16 ++++++++-------- src/intellij-14/setup.sh | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/intellij-14/scala.ipr.SAMPLE b/src/intellij-14/scala.ipr.SAMPLE index 7c2022f3a9..1e3d07466d 100644 --- a/src/intellij-14/scala.ipr.SAMPLE +++ b/src/intellij-14/scala.ipr.SAMPLE @@ -233,14 +233,14 @@ - - - + + + - - + + @@ -248,9 +248,9 @@ - - - + + + diff --git a/src/intellij-14/setup.sh b/src/intellij-14/setup.sh index ec303778ed..cf08898f24 100755 --- a/src/intellij-14/setup.sh +++ b/src/intellij-14/setup.sh @@ -12,3 +12,6 @@ for f in "$SCRIPT_DIR"/*.SAMPLE; do g=${f%.SAMPLE} cp $f $g done + +SCALA_VERSION="`cat $SCRIPT_DIR/../../versions.properties | grep 'starr.version' | awk '{split($0,a,"="); print a[2]}'`" +sed "s/#scala-version#/$SCALA_VERSION/g" $SCRIPT_DIR/scala.ipr.SAMPLE > $SCRIPT_DIR/scala.ipr \ No newline at end of file -- cgit v1.2.3