#!/bin/sh
if [ "$1" = --wget ]
then
    use_wget=1
else
    use_wget=0
fi

uids="FEAE4588 A8C99CA3 BF3BB1DD 0FE53DD9 B2DCB3A6 E51808DD BA56DB98 \
1E7829E6 D294608E F3909A84 331FAE7D 36137436 0BAC89D9 2F1EFA37 \
7064D586 BF630710 648BAE55 A7C39408"

if [ $use_wget = 1 ]
then
    if [ -f lysring.pgp ]
    then
	echo Please move away lysring.pgp.  It is in the way. >&2
	exit 1
    fi
    wget http://www.lysator.liu.se/~ceder/lysring.pgp
    gpg --import < lysring.pgp
else
    gpg --keyserver wwwkeys.dk.pgp.net --recv-keys $uids
fi

for uid in $uids
do
  gpg --sign-key $uid
done
  
gpg --keyserver wwwkeys.dk.pgp.net --send-keys $uids
exit 0

