]> code.octet-stream.net Git - hashgood/blob - buildscripts/dist-generic.sh
Build scripts
[hashgood] / 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="hashgood-${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/hashgood/shortlog/refs/tags/${TAG}|${TAG}"