aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-27 23:08:49 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-27 23:08:49 +0200
commitf870c31d2a1c26a51399944cf48626383a918ef9 (patch)
tree6d4c3dc87162bb5574cfbaa2e9f0f1ba2ac56dc8 /bin
parente6508e7a5351a74c91b6de46ea241d4c526e92b3 (diff)
downloaddotty-f870c31d2a1c26a51399944cf48626383a918ef9.tar.gz
dotty-f870c31d2a1c26a51399944cf48626383a918ef9.tar.bz2
dotty-f870c31d2a1c26a51399944cf48626383a918ef9.zip
Support rebuilding tests in dotc, be smart about sbt incremental compilation.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dotc7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/dotc b/bin/dotc
index 088ae14ff..5fa1133f8 100755
--- a/bin/dotc
+++ b/bin/dotc
@@ -58,19 +58,20 @@ function checkjar {
echo "The required jar file was built successfully."
fi
else
- NEW_FILES="$(find "$DOTTY_ROOT/src" -iname "*.scala" -newer "$1")"
+ NEW_FILES="$(find "$DOTTY_ROOT/$3" -iname "*.scala" -newer "$1")"
if [ ! -z "$NEW_FILES" ];
then
echo "new files detected. rebuilding"
cd $DOTTY_ROOT
sbt $2
+ touch "$1"
cd -
fi
fi
}
-checkjar $MAIN_JAR package
-checkjar $TEST_JAR test:package
+checkjar $MAIN_JAR package src
+checkjar $TEST_JAR test:package test
# Autodetecting the scala-library location, in case it wasn't provided by an environment variable
if [ "$SCALA_LIBRARY_JAR" == "" ]