hy/demo/devel.sh

13 lines
242 B
Bash
Raw Normal View History

2012-12-26 22:37:57 -05: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