summaryrefslogtreecommitdiff
path: root/olamic-run
diff options
context:
space:
mode:
Diffstat (limited to 'olamic-run')
-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