summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--olamic-run12
1 files changed, 12 insertions, 0 deletions
diff --git a/olamic-run b/olamic-run
new file mode 100644
index 0000000..20a745f
--- /dev/null
+++ b/olamic-run
@@ -0,0 +1,12 @@
1# vim: set ft=bash :
2
3make
4
5if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then
6 INSTALL_DIR=/srv/olamic/artifacts/toycpu/"${BASH_REMATCH[1]}"
7fi
8
9if [[ "${INSTALL_DIR:-}" != "" ]]; then
10 mkdir -p "${INSTALL_DIR}"
11 git archive -o "${INSTALL_DIR}/toycpu.zip" @
12fi