Skip to content

Instantly share code, notes, and snippets.

@peko
Created May 7, 2019 10:09
Show Gist options
  • Save peko/9ff1e04d13e366afdb9ae450f77cb3f4 to your computer and use it in GitHub Desktop.
Save peko/9ff1e04d13e366afdb9ae450f77cb3f4 to your computer and use it in GitHub Desktop.
Watch files and build
watch_files=*.c
while inotifywait -e close_write $watch_files
do
# build commands
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment