From: Mark Wooding Date: Tue, 21 Mar 2006 11:53:03 +0000 (+0000) Subject: userv: Provide interfaces to the new commands. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/cryptomail/commitdiff_plain/a6d4bfda1b75075bd77f2031445eba95ae573b44 userv: Provide interfaces to the new commands. Annoyingly this involves adding a shell script wrapper to substitute userv's environment variables in the right places. --- 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" "$@"