X-Git-Url: https://code.octet-stream.net/hashgood/blobdiff_plain/fe58ffda1c19d5c4d5b7ff3b42e0de7a6b7136ff..585a245dd6e90efc545dbd68f928da9e03086cb9:/buildscripts/dist-generic.sh diff --git a/buildscripts/dist-generic.sh b/buildscripts/dist-generic.sh new file mode 100755 index 0000000..844201e --- /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="hashgood-${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/hashgood/shortlog/refs/tags/${TAG}|${TAG}"