make sdl unremovable

This commit is contained in:
Kasper Sauramo
2025-03-13 17:28:48 +02:00
parent 4a393035a2
commit e84760fb8f
4 changed files with 17 additions and 17 deletions

View File

@@ -1,10 +1,11 @@
#!/usr/bin/env bash
echo "Watching changes in hiisi..."
while true; do
inotifywait -e modify build/hiisi/libhiisi-engine.so
echo "$(date +\"%H:%M:%S\") - Hiisi changed!"
HIISI_PID=$(pgrep -x hiisi-run)
kill -USR1 "${HIISI_PID}" && echo "Signal sent!" || echo "Signal send failed!"
done
inotifywait --monitor -e modify build/hiisi/ |
while read -r _ action file; do
sleep 0.1
echo "$(date +%H:%M:%S): Hiisi changed!"
echo "$action on $file"
HIISI_PID=$(pgrep -x hiisi-run)
kill -USR1 "${HIISI_PID}" && echo "Signal sent!" || echo "Signal send failed!"
done