hy/demo/devel.sh

13 lines
242 B
Bash
Raw Normal View History

2012-12-27 04:37:57 +01:00
#!/bin/bash
last=""
while [ true ]; do
now=$(find ./less -type f -printf "%T@ %Tx %TX %p\n" | sort -n -r | head -1)
if [ "$last" != "$now" ]; then
make >/dev/null
echo "Updated."
fi
last=$now
sleep 1
done