File: devel.sh

package info (click to toggle)
dput-ng 1.44
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,052 kB
  • sloc: python: 3,927; makefile: 154; sh: 10
file content (12 lines) | stat: -rwxr-xr-x 253 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

last=""
while [ true ]; do
    now=$(find -name "*rst" -type f -printf "%T@ %Tx %TX %p\n" | sort -n -r | head -1)
    if [ "$last" != "$now" ]; then
        make html >/dev/null
        echo "Updated."
    fi
    last=$now
    sleep 1
done