hy/site/devel.sh

14 lines
264 B
Bash
Raw Normal View History

2013-03-10 20:30:49 +01:00
#!/bin/bash
shopt -s extglob
last=""
while [ true ]; do
now=$(find coffee 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