aboutsummaryrefslogtreecommitdiff
path: root/bin/dotc
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dotc')
-rwxr-xr-xbin/dotc9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/dotc b/bin/dotc
index 1aadfbc55..088ae14ff 100755
--- a/bin/dotc
+++ b/bin/dotc
@@ -57,6 +57,15 @@ function checkjar {
else
echo "The required jar file was built successfully."
fi
+ else
+ NEW_FILES="$(find "$DOTTY_ROOT/src" -iname "*.scala" -newer "$1")"
+ if [ ! -z "$NEW_FILES" ];
+ then
+ echo "new files detected. rebuilding"
+ cd $DOTTY_ROOT
+ sbt $2
+ cd -
+ fi
fi
}