diff options
author | Alex Auvolat <alex@adnab.me> | 2020-03-02 21:10:36 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2020-03-02 21:10:36 +0100 |
commit | f5547bf84bbd7e22b1ed9180f42b7e5095f4bdba (patch) | |
tree | ef1a29ea4ffc5f3fe733a3ae984a7f851e6ad749 /.webpull | |
parent | 74c6a06b4b664328e7a2d7e2de4474df28202429 (diff) | |
download | site-f5547bf84bbd7e22b1ed9180f42b7e5095f4bdba.tar.gz site-f5547bf84bbd7e22b1ed9180f42b7e5095f4bdba.zip |
Add association page and documents from 2020-01-13
Diffstat (limited to '.webpull')
-rwxr-xr-x | .webpull | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -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 + |