From d98f03fb3b0cec4cad259ff9e3c78f32d266c91c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 24 Jul 2024 16:15:32 -0300 Subject: rm src/keys/GPG/andre.asc src/keys/gpg-* --- src/keys/gpg-recipients.sh | 71 ---------------------------------------------- 1 file changed, 71 deletions(-) delete mode 100755 src/keys/gpg-recipients.sh (limited to 'src/keys/gpg-recipients.sh') diff --git a/src/keys/gpg-recipients.sh b/src/keys/gpg-recipients.sh deleted file mode 100755 index b2951b7..0000000 --- a/src/keys/gpg-recipients.sh +++ /dev/null @@ -1,71 +0,0 @@ -#!/bin/sh -set -eu - -usage() { - cat <<-'EOF' - Usage: - gpg-recipients.sh - gpg-recipients.sh -h - EOF -} - -help() { - cat <<-'EOF' - - - Options: - -h, --help show this message - - - Process GPG keys under src/keys/GPG/, and emit the command-line - flags to be given to the `gpg` command, as in: - - $ gpg -r KEY1 -r KEY2 ... - - gpg-recipients.sh emits the `-r KEY1 -r KEY2` part, getting - those values from the fingerprints of the GPG keys in the - directory. - - - Examples: - - Just run it: - - $ gpg-recipients.sh - EOF -} - - -for flag in "$@"; do - case "$flag" in - --) - break - ;; - --help) - usage - help - exit - ;; - *) - ;; - esac -done - -while getopts 'h' flag; do - case "$flag" in - h) - usage - help - exit - ;; - *) - usage >&2 - exit 2 - ;; - esac -done -shift $((OPTIND - 1)) - - -gpg --with-colons --show-key src/keys/GPG/* | - awk -F: '$1 == "fpr" { printf " -r %s", $10 }' -- cgit v1.2.3