Quick hack to watch my source and rebuild.

This commit is contained in:
Zed A. Shaw 2024-04-26 19:14:28 -04:00
parent f44a08f099
commit e7efc197a1
2 changed files with 12 additions and 1 deletions

12
sfmldemo/watch_build.sh Executable file
View file

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -e
fswatch -o *.cpp | while read num
do echo ">>>>>>>>>>>>>>>>>>>>>> `date`"
if meson compile -C builddir
then
./builddir/sfmldemo
else
echo "^^^^^^^^^^^^^^^^^^^^^ ERROR `date`"
fi
done