# vim: set ft=bash : make if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then INSTALL_DIR=/srv/olamic/artifacts/toycpu/"${BASH_REMATCH[1]}" fi if [[ "${INSTALL_DIR:-}" != "" ]]; then mkdir -p "${INSTALL_DIR}" git archive -o "${INSTALL_DIR}/toycpu.zip" @ fi