#install inotify tools
pacman -S inotify-tools
# write a monitor script
autobuild.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh
while true
do
inotifywait -e modify -r .
qmake -project
qmake
make
done
=== Refference ===
Github - inotify-tools
https://github.com/rvoicilas/inotify-tools/wiki
inotifywait(1) - Linux man page
http://linux.die.net/man/1/inotifywait