Skip to content
make 207 B
Newer Older
Michael Krause's avatar
Michael Krause committed
#!/bin/sh

Michael Krause's avatar
Michael Krause committed
shopt -s globstar
WATCHSOURCE="**/*.rst"
Michael Krause's avatar
Michael Krause committed
MAKEFUNC=makeindex

function makeindex() {
Michael Krause's avatar
Michael Krause committed
    make clean
Michael Krause's avatar
Michael Krause committed
    make html
}


while true ; do
    inotifywait -e modify $WATCHSOURCE -qq
    $MAKEFUNC
done
Michael Krause's avatar
Michael Krause committed