diff options
| author | Julian Blake Kongslie | 2021-03-28 14:48:30 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-28 14:48:30 -0700 |
| commit | 7a1311c16c36b18a66a5ee43511fb9ad5093ec3a (patch) | |
| tree | 09df63644ac11dee4f2de25d476437e73fcdea84 /olamic-run | |
| download | noncpu-7a1311c16c36b18a66a5ee43511fb9ad5093ec3a.tar.xz | |
Initial commit.
Diffstat (limited to '')
| -rw-r--r-- | olamic-run | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/olamic-run b/olamic-run new file mode 100644 index 0000000..24b72b1 --- /dev/null +++ b/olamic-run | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | # vim: set ft=bash : | ||
| 2 | |||
| 3 | make | ||
| 4 | |||
| 5 | if [[ $GIT_REF =~ ^refs/heads/(.+)$ ]]; then | ||
| 6 | INSTALL_DIR=/srv/olamic/artifacts/noncpu/"${BASH_REMATCH[1]}" | ||
| 7 | fi | ||
| 8 | |||
| 9 | if [[ "${INSTALL_DIR:-}" != "" ]]; then | ||
| 10 | mkdir -p "${INSTALL_DIR}" | ||
| 11 | git archive -o "${INSTALL_DIR}/noncpu.zip" @ | ||
| 12 | fi | ||
