aboutsummaryrefslogtreecommitdiff
path: root/share/keyringer/recipients
diff options
context:
space:
mode:
Diffstat (limited to 'share/keyringer/recipients')
-rwxr-xr-xshare/keyringer/recipients46
1 files changed, 0 insertions, 46 deletions
diff --git a/share/keyringer/recipients b/share/keyringer/recipients
deleted file mode 100755
index 0460842..0000000
--- a/share/keyringer/recipients
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/bin/bash
-#
-# Recipient management.
-#
-
-# Load functions
-LIB="`dirname $0`/../../lib/keyringer"
-source "$LIB/functions" || exit 1
-
-# Command parser
-keyringer_get_command "$2"
-
-# Set recipients file
-keyringer_set_new_recipients "$3"
-
-if [ "$COMMAND" == "ls" ]; then
- if [ ! -z "$3" ]; then
- if [ -e "$RECIPIENTS_FILE" ]; then
- cat "$RECIPIENTS_FILE"
- else
- echo "Recipients file not found: $RECIPIENTS_FILE_BASE"
- exit 1
- fi
- else
- for recipients in `ls $RECIPIENTS`; do
- echo "In recipients file $recipients:"
- echo "-----------------------------------------------------------------------------------"
- cat $RECIPIENTS/$recipients
- echo ""
- done
- fi
-elif [ "$COMMAND" == "edit" ]; then
- if [ ! -z "$3" ]; then
- keyringer_create_new_recipients $RECIPIENTS_FILE
- $EDITOR "$RECIPIENTS_FILE"
- keyringer_check_recipients
- keyringer_exec git "$BASEDIR" add "$RECIPIENTS_FILE_BASE"
- else
- echo "Please specify one recipient to edit among the available:"
- ls $RECIPIENTS | sed -e 's/^/\t/'
- exit 1
- fi
-else
- printf "%s: No such command %s\n" "$BASENAME" "$COMMAND"
- exit 1
-fi