diff options
author | Yuchen Pei <id@ypei.org> | 2023-06-28 19:54:44 +1000 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2023-06-28 19:54:44 +1000 |
commit | b0e256586c24c6fb169d61e98302b11026ff10d2 (patch) | |
tree | a62223150703df6c66e3c42448efd881366448f8 /misc | |
parent | 5142e4227a0d10f8e5481523710b2c17b2054889 (diff) |
Some minor fixes
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 |