summaryrefslogtreecommitdiff
path: root/olamic-run
diff options
context:
space:
mode:
authorJulian Blake Kongslie2020-10-30 16:04:16 -0700
committerJulian Blake Kongslie2020-10-30 17:33:31 -0700
commit3e2d71d7b135cc6980cc10a4108130236734551e (patch)
treeec52715eab33236c10f01ab3f47c913f110ec032 /olamic-run
downloadolamic-release/1.tar.xz
Initial version.release/1
Diffstat (limited to '')
-rw-r--r--olamic-run14
1 files changed, 14 insertions, 0 deletions
diff --git a/olamic-run b/olamic-run
new file mode 100644
index 0000000..46fdabc
--- /dev/null
+++ b/olamic-run
@@ -0,0 +1,14 @@
1# vim: set ft=bash :
2
3dpkg-buildpackage
4lintian --fail-on error,warning
5
6if [[ $GIT_REF =~ ^refs/tags/(.+)$ ]]; then
7 INSTALL_DIR=/srv/olamic/artifacts/olamic/"${BASH_REMATCH[1]}"
8fi
9
10if [[ "${INSTALL_DIR:-}" != "" ]]; then
11 rm -rf "$INSTALL_DIR"
12 mkdir -p "$INSTALL_DIR"
13 cp -t "$INSTALL_DIR" ../olamic_*
14fi