summaryrefslogtreecommitdiffstats
path: root/scripts/watch_filters.sh
blob: 21fb6863099bca553d3c919fb83fe03183c1e0d7 (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" "${FILTERS_DIR%/}" \
    | while read file
        do
            scripts/build_content.sh "all_md"
        done