aboutsummaryrefslogtreecommitdiff
path: root/aux/workflow/sign-tarballs.sh
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-07-04 16:17:09 -0300
committerEuAndreh <eu@euandre.org>2021-07-04 16:17:09 -0300
commit209af7d8849515fd9f8bc2873bb7e999b2d14240 (patch)
treeff2a9c5a611d47316315fbc26dc23f052c630e85 /aux/workflow/sign-tarballs.sh
parentdependencies.dot: Add colors to all; remove makecheck dependency; tabify (diff)
downloadpackages-209af7d8849515fd9f8bc2873bb7e999b2d14240.tar.gz
packages-209af7d8849515fd9f8bc2873bb7e999b2d14240.tar.xz
aux/: Update, adjust Makefile accordingly
Diffstat (limited to '')
-rwxr-xr-xaux/workflow/sign-tarballs.sh22
1 files changed, 21 insertions, 1 deletions
diff --git a/aux/workflow/sign-tarballs.sh b/aux/workflow/sign-tarballs.sh
index 8de6ac4..168d38d 100755
--- a/aux/workflow/sign-tarballs.sh
+++ b/aux/workflow/sign-tarballs.sh
@@ -1,7 +1,27 @@
#!/bin/sh
set -eu
-PROJECT="$1"
+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