hy/demo/devel.sh
2012-12-26 22:37:57 -05:00

13 lines
242 B
Bash
Executable File

#!/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