chiark / gitweb /
userv: Provide interfaces to the new commands.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 21 Mar 2006 11:53:03 +0000 (11:53 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 21 Mar 2006 12:02:23 +0000 (12:02 +0000)
Annoyingly this involves adding a shell script wrapper to substitute
userv's environment variables in the right places.

.userv/rc
bin/uwrap [new file with mode: 0755]

index f4a40f6..9549421 100644 (file)
--- 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 (executable)
index 0000000..9a2967b
--- /dev/null
+++ b/bin/uwrap
@@ -0,0 +1,4 @@
+#! /bin/sh
+
+set -e
+exec bin/cryptomail -U "userv:$USERV_USER" "$@"