blob: 92719d3d731e620fd1a7a7ffaff2c44ff89db9d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
source "site.defaults.conf"
if [ -f "site.conf" ]; then
source "site.conf"
fi
inotifywait -qrme close_write,delete,move --format "%w%f" "${CONTENT_DIR%/}" \
| while read file
do
if [ -f "$file" ]; then
scripts/build_content.sh "single" "$file"
elif [ ! -d "$file" ]; then
scripts/build_content.sh "delete" "$file"
fi
done
|