aboutsummaryrefslogtreecommitdiff
path: root/.webpull
diff options
context:
space:
mode:
Diffstat (limited to '.webpull')
-rwxr-xr-x.webpull17
1 files changed, 17 insertions, 0 deletions
diff --git a/.webpull b/.webpull
index f381d82..4fa75c1 100755
--- a/.webpull
+++ b/.webpull
@@ -1,2 +1,19 @@
#!/bin/bash
+
+set -e
+
+mkdir -p ./static
+COPYFILES=$(find src -type f | egrep -v '\.(pug|md)$')
+
+for CF in $COPYFILES; do
+ CF_TO=static/${CF#"src/"}
+ if [ ! -d $(dirname $CF_TO) ]; then
+ mkdir -vp $(dirname $CF_TO)
+ fi
+ if [ ! -e $CF_TO ]; then
+ ln -srv $CF $CF_TO
+ fi
+done
+
pug ./src --out ./static
+