diff options
Diffstat (limited to 'misc')
-rwxr-xr-x | misc/bin/watch-make.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/misc/bin/watch-make.sh b/misc/bin/watch-make.sh new file mode 100755 index 0000000..db9129f --- /dev/null +++ b/misc/bin/watch-make.sh @@ -0,0 +1,10 @@ +#!/bin/bash +cmd="$@" + +while true; do + $cmd + inotify_result= + while [ -z "$inotify_result" ]; do + inotify_result=$(inotifywait -qre close_write ../src | grep -E '\.(cc|h)$') + done +done |