aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-07-17 11:50:31 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-07-17 11:50:31 +0100
commit206444003f8675d0dcfd647e6a2d4d957fcb5268 (patch)
treed27d5d408b3ef35671926cbf854ad1238576a182 /bin
parentdfa32801f5b2c774a8c792353c1bf1d1781a4a0e (diff)
downloaddotty-206444003f8675d0dcfd647e6a2d4d957fcb5268.tar.gz
dotty-206444003f8675d0dcfd647e6a2d4d957fcb5268.tar.bz2
dotty-206444003f8675d0dcfd647e6a2d4d957fcb5268.zip
bin/common: make check_jar work outside of dotty root
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/common b/bin/common
index 9b8b7a4da..3fa28788f 100755
--- a/bin/common
+++ b/bin/common
@@ -103,7 +103,7 @@ fi
function check_jar {
# Usage:
# check_jar "name" "path/to/package.jar" "sources/dir" 'lambda to exec on failure'
- local new_files="$(find "$3" \( -iname "*.scala" -o -iname "*.java" \) -newer "$2")"
+ local new_files="$(find "$DOTTY_ROOT/$3" \( -iname "*.scala" -o -iname "*.java" \) -newer "$2")"
if [ ! -z "$new_files" ]; then
printf "New files detected in $1, rebuilding..."
eval "$4"