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

WATCHSOURCE="**/*.rst *.rst"
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
Michael Krause's avatar
Michael Krause committed
    WATCHSOURCE="**/*.rst *.rst"
Michael Krause's avatar
Michael Krause committed
    $MAKEFUNC
done
Michael Krause's avatar
Michael Krause committed