bin/sign: Allow domain to be set in the hosts file.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 9 Feb 2013 17:37:50 +0000 (17:37 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 9 Feb 2013 17:37:50 +0000 (17:37 +0000)
We extend our reach to other networks.

bin/sign

index ecd139e..fbdadc6 100755 (executable)
--- a/bin/sign
+++ b/bin/sign
@@ -36,6 +36,10 @@ while read line <&3; do
 
   ## Read the host line.
   set -- $line
+  case "$1" in
+    @domain) domain=$2 ;;
+    @*) echo >&2 "$0: unknown directive \`$1'"; exit 1 ;;
+  esac
   host=$1
   names=""
   nicks=""