summaryrefslogtreecommitdiffstats
path: root/scripts/watch_templates.sh
blob: 70ae4c3a4994d41be6f5bac5ac075fffe05f671f (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash

source "site.defaults.conf"

inotifywait -qrme close_write,delete,move --format "%w%f" "${TEMPLATES_DIR%/}" \
    | while read file
        do
            scripts/build_content.sh "all_md"
        done