You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
303 B
Bash

#!/bin/bash -eu
DIRECTORY_TO_OBSERVE="."
function block_for_change {
inotifywait --recursive \
--event modify,move,create,delete \
--exclude "_build.+"\
$DIRECTORY_TO_OBSERVE >/dev/null 2>&1
echo -n ""
}
function build {
clear
make revealjs
}
build
while block_for_change; do
build
done