summaryrefslogtreecommitdiffstats
path: root/scripts/watch_templates.sh
blob: b6149e7c07709592064f90a9cd2186f7ea8dfca0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

source "site.defaults.conf"

if [ -f "site.conf" ]; then
    source "site.conf"
fi

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