X-Git-Url: https://code.octet-stream.net/broadcaster/blobdiff_plain/d49d716a33dc5eda5b0cb634b762405f7cf509fe..f7fc7180de1b1c47a90e0acc3ab60ace465d0bde:/buildscripts/dist-generic.sh diff --git a/buildscripts/dist-generic.sh b/buildscripts/dist-generic.sh new file mode 100755 index 0000000..034d98e --- /dev/null +++ b/buildscripts/dist-generic.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -euxo pipefail +cd "$(git rev-parse --show-toplevel)" + +TAG=$1 + +BASENAME="broadcaster-${TAG}" +FILENAME="${BASENAME}.tar.xz" + +git archive "${TAG}" -o "${FILENAME}" --prefix="${BASENAME}/" + +echo "GENERIC_ARTIFACT|${FILENAME}|Source Code" +echo "URL|Git Tag|https://code.octet-stream.net/broadcaster/shortlog/refs/tags/${TAG}|${TAG}"