From a6d4bfda1b75075bd77f2031445eba95ae573b44 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Tue, 21 Mar 2006 11:53:03 +0000 Subject: [PATCH] userv: Provide interfaces to the new commands. Organization: Straylight/Edgeware From: Mark Wooding Annoyingly this involves adding a shell script wrapper to substitute userv's environment variables in the right places. --- .userv/rc | 17 ++++++++++++++++- bin/uwrap | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100755 bin/uwrap diff --git a/.userv/rc b/.userv/rc index f4a40f6..9549421 100644 --- a/.userv/rc +++ b/.userv/rc @@ -2,7 +2,22 @@ if glob service generate no-suppress-args - execute bin/cryptomail generate -f %@cryptomail.distorted.org.uk + execute bin/uwrap generate -f %@cryptomail.distorted.org.uk +fi + +if glob service info + no-suppress-args + execute bin/uwrap info +fi + +if glob service revoke + no-suppress-args + execute bin/uwrap revoke +fi + +if glob service help + no-suppress-args + execute bin/uwrap help fi if ( glob service addrcheck:cryptomail-default diff --git a/bin/uwrap b/bin/uwrap new file mode 100755 index 0000000..9a2967b --- /dev/null +++ b/bin/uwrap @@ -0,0 +1,4 @@ +#! /bin/sh + +set -e +exec bin/cryptomail -U "userv:$USERV_USER" "$@" -- [mdw]