Search for '*.adoc' files
Test if filename.adoc is newer than filename.html
if so, run asciidoctor on it
find . -name '*.adoc' | while read FILE; do [ $"${FILE}" -nt $"${FILE%adoc}htmlhtml" ] && asciidoctor -q $"${FILE}" ; done
or put in a script:
#! /bin/bash find . -name '*.adoc' | while read FILE; do if [ $"${FILE}" -nt $"${FILE%adoc}htmlhtml" ]; then asciidoctor -q $"${FILE}" fi done The one-line or the script can be run from crontab each minut:
crontab -e add a line
* * * * * /home/joe/update_adoc.bash