diff options
author | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-27 23:08:49 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-05-27 23:08:49 +0200 |
commit | f870c31d2a1c26a51399944cf48626383a918ef9 (patch) | |
tree | 6d4c3dc87162bb5574cfbaa2e9f0f1ba2ac56dc8 /bin | |
parent | e6508e7a5351a74c91b6de46ea241d4c526e92b3 (diff) | |
download | dotty-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-x | bin/dotc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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" == "" ] |