site/.webpull

20 lines
301 B
Text
Raw Normal View History

2020-03-01 19:50:47 +00:00
#!/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
2020-03-01 21:17:44 +00:00
pug ./src --out ./static