2020-03-01 19:50:47 +00:00
|
|
|
#!/bin/bash
|
2020-03-02 20:10:36 +00:00
|
|
|
|
|
|
|
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
|
2020-03-02 20:10:36 +00:00
|
|
|
|