Build watch for macOS

This commit is contained in:
weryques 2018-03-20 14:14:27 -03:00
parent 868c917c90
commit c60902a035
1 changed files with 12 additions and 4 deletions

View File

@ -4,8 +4,16 @@
echo 'Watching changes on src/' echo 'Watching changes on src/'
while inotifywait -qqr src -e create,move,modify,delete; do current_OS=`uname`
# For macOS (Darwin) is needed fsevents-tools installed (you can use homebrew install fsevents-tools)
if [ $current_OS == "Darwin" ]; then
echo echo
echo 'Change detected, running build' notifyloop src ./build.sh
./build.sh else
done while inotifywait -qqr src -e create,move,modify,delete; do
echo
echo 'Change detected, running build'
./build.sh
done
fi