#!/usr/bin/env bash12# copy website to build3cp -R common/src/web build45# switch to gh-pages and copy the files6git checkout gh-pages || exit7# make sure that our local version is up to date.8git pull || exit910rm -rf web11mv build/web web1213git add -A web1415read -p "Do you want to commit the changes? (Y/n):" changes </dev/tty1617if [ -z $changes ]; then18changes=Y19fi2021case "$changes" in22Y | y) echo "" ;;23N | n) exit ;;24*) exit ;;25esac2627echo "Committing changes"28git commit -am "updating test website code"2930echo "pushing to origin gh-pages"31git push origin gh-pages3233echo "switching back to trunk branch"34git checkout trunk353637