aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/sign-tarballs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-11-17 19:58:51 -0300
committerEuAndreh <eu@euandre.org>2024-11-17 19:58:51 -0300
commitff8f00b960f00f1db0bd7dc04de6c69cabc65f88 (patch)
treedd272ed8905fb70eb39300427936ee103726a0f5 /aux/workflow/sign-tarballs.sh
parentrm src/bin/pb (diff)
downloadeuandre.org-ff8f00b960f00f1db0bd7dc04de6c69cabc65f88.tar.gz
euandre.org-ff8f00b960f00f1db0bd7dc04de6c69cabc65f88.tar.xz
rm -rf aux/
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/sign-tarballs.sh38
1 files changed, 0 insertions, 38 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh
deleted file mode 100755
index 3ab2bb8..0000000
--- a/aux/workflow/sign-tarballs.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-set -eu
-
-while getopts 'n:' flag; do
- case "$flag" in
- n)
- PROJECT="$OPTARG"
- ;;
- *)
- exit 2
- ;;
- esac
-done
-shift $((OPTIND -1))
-
-assert_arg() {
- if [ -z "$1" ]; then
- echo "Missing $2" >&2
- exit 2
- fi
-}
-
-assert_arg "${PROJECT:-}" '-n PROJECT'
-
-
-SIGNATURES="$(git notes --ref=refs/notes/signatures/tar.gz list | cut -d\ -f2)"
-for tag in $(git tag); do
- COMMIT="$(git rev-list -n1 "$tag")"
- if echo "$SIGNATURES" | grep -qF "$COMMIT"; then
- continue
- fi
- echo "Adding missing signature to $tag" >&2
- git notes --ref=refs/notes/signatures/tar.gz add -C "$(
- git archive --format tar.gz --prefix "$PROJECT-$tag/" "$tag" |
- gpg --output - --armor --detach-sign |
- git hash-object -w --stdin
- )" "$tag"
-done