Make build.sh drop output in correct dirs

This commit is contained in:
Andrew Miner
2017-06-04 20:38:27 -07:00
parent bcbb951c6f
commit 6b25d4ecfa
+2 -1
View File
@@ -69,8 +69,9 @@ function command-compile {
} }
function command-watch { function command-watch {
CURRENT_DIR=$(dirname $0)
$FSWATCH -r src/scores -i '*.ly$' -e "includes" | while read FILE; do $FSWATCH -r src/scores -i '*.ly$' -e "includes" | while read FILE; do
FILE=$(echo $FILE | sed "s@$PWD@.@") FILE=$(echo $FILE | sed 's@.*/src/scores/\(.*\)$@./src/scores/\1@')
compile-ly $FILE compile-ly $FILE
done done
} }