]> code.octet-stream.net Git - m17rt/blob - buildscripts/dist-generic.sh
Add build scripts for cross-platform testing
[m17rt] / buildscripts / dist-generic.sh
1 #!/bin/bash
2 set -euxo pipefail
3 cd "$(git rev-parse --show-toplevel)"
4
5 TAG=$1
6
7 BASENAME="m17rt-${TAG}"
8 FILENAME="${BASENAME}.tar.xz"
9
10 git archive "${TAG}" -o "${FILENAME}" --prefix="${BASENAME}/"
11
12 echo "GENERIC_ARTIFACT|${FILENAME}|Source Code"
13 echo "URL|Git Tag|https://code.octet-stream.net/m17rt/shortlog/refs/tags/${TAG}|${TAG}"