summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2020-12-23 17:57:36 +0100
committerVolpeon <git@volpeon.ink>2020-12-23 17:57:36 +0100
commit213f8c2ce1d6c27bf579e7cb440e6ff53f076d30 (patch)
treea6a7cb1131dca76a4c63bf35cff063eca17d439c /scripts
parentBetter build script, allow static files in content folder (diff)
downloadvolpeon.ink-213f8c2ce1d6c27bf579e7cb440e6ff53f076d30.tar.gz
volpeon.ink-213f8c2ce1d6c27bf579e7cb440e6ff53f076d30.tar.bz2
volpeon.ink-213f8c2ce1d6c27bf579e7cb440e6ff53f076d30.zip
Added favicon, also watch templates folder
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build_content.sh2
-rwxr-xr-xscripts/watch_templates.sh7
2 files changed, 8 insertions, 1 deletions
diff --git a/scripts/build_content.sh b/scripts/build_content.sh
index 460a3fe..0698ee0 100755
--- a/scripts/build_content.sh
+++ b/scripts/build_content.sh
@@ -39,7 +39,7 @@ if [ -z "$1" ]; then
39 done 39 done
40elif [ "$2" = "delete" ]; then 40elif [ "$2" = "delete" ]; then
41 TARGET=$(target "$1") 41 TARGET=$(target "$1")
42 echo "[DELETE] $1 -> $TARGET" 42 echo "[DELETE ] $1 -> $TARGET"
43 rm -rf $TARGET 43 rm -rf $TARGET
44else 44else
45 handle "$1" 45 handle "$1"
diff --git a/scripts/watch_templates.sh b/scripts/watch_templates.sh
new file mode 100755
index 0000000..160a46c
--- /dev/null
+++ b/scripts/watch_templates.sh
@@ -0,0 +1,7 @@
1#!/bin/bash
2
3inotifywait -qrme close_write,delete,move --format "%w%f" templates \
4 | while read FILENAME
5 do
6 scripts/build_content.sh
7 done