From f5547bf84bbd7e22b1ed9180f42b7e5095f4bdba Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 2 Mar 2020 21:10:36 +0100 Subject: Add association page and documents from 2020-01-13 --- .webpull | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to '.webpull') 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 + -- cgit v1.2.3