deploy.sh (615B)
1 #!/bin/sh 2 3 OPTS="$@" 4 5 $(dirname $0)/clean.sh 6 $(dirname $0)/build.sh 7 8 set -ex 9 10 mkdir -p out tmp 11 12 # copy static resources 13 cp -r public/ out/ 14 cp -r src/css/ out/ 15 cp -r src/js/ out/ 16 cp -r src/res/ out/ 17 18 # ensure favicon resources are in webroot directory for Safari and IE support 19 cp -r src/favicon/* out/ 20 21 # template all html 22 ./bin/template $OPTS -o out -t src/templates/main.html src/html/*.html 23 24 # template all blog posts 25 mkdir -p out/blog 26 ./bin/template $OPTS -o out/blog -t src/templates/blogpost.html -i tmp/blog.html -u /blog/ src/blog/*.html 27 ./bin/template $OPTS -o out -t src/templates/blog.html tmp/blog.html