Created
December 5, 2016 09:14
-
-
Save chr15m/7dc1a8c79e26ccdf319f3ca476750ea7 to your computer and use it in GitHub Desktop.
Shell script using make to watch a project and re-build on demand.
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 | |
if ! make -q "$@"; | |
then | |
echo "#-> Starting build: `date`" | |
make "$@"; | |
echo "#-> Build complete." | |
fi | |
sleep 0.5; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment