diff options
author | Volpeon <git@volpeon.ink> | 2021-05-10 16:41:05 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2021-05-10 16:41:05 +0200 |
commit | a48d05d1d5fcff414359c8ba6cc8f38467aebdeb (patch) | |
tree | 3542bf116c910a1bb42b40d8531f60c2c2498b08 /scripts/watch_content.sh | |
parent | Update (diff) | |
download | volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.gz volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.tar.bz2 volpeon.ink-a48d05d1d5fcff414359c8ba6cc8f38467aebdeb.zip |
Refactoring to fully take advantage of Make
Diffstat (limited to 'scripts/watch_content.sh')
-rwxr-xr-x | scripts/watch_content.sh | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/scripts/watch_content.sh b/scripts/watch_content.sh deleted file mode 100755 index 30f8a6c..0000000 --- a/scripts/watch_content.sh +++ /dev/null | |||
@@ -1,14 +0,0 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | source "site.defaults.conf" | ||
4 | |||
5 | inotifywait -qrme close_write,delete,move --format "%w%f" "${CONTENT_DIR%/}" \ | ||
6 | | while read file | ||
7 | do | ||
8 | if [ -f "$file" ]; then | ||
9 | # scripts/build_content.sh "single" "$file" | ||
10 | scripts/build_content.sh | ||
11 | elif [ ! -d "$file" ]; then | ||
12 | scripts/build_content.sh "delete" "$file" | ||
13 | fi | ||
14 | done | ||