#!/bin/bash
# Merge master to gh-pages, rebuild the prod cljs, and push.

set -e

git checkout gh-pages
git merge master
rm resources/public/cljs/main.js
lein cljsbuild once prod
git add -f resources/public/cljs/main.js
git commit -m "Update gh-pages js"
git push

Automate the gh-pages rebuild and update
Automate the gh-pages rebuild and update
