#! /bin/sh
# Multicast transmission using uux -l.
# This has not been well tested, we don't have -l.

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/usr/local/lib/news/config}

PATH=$NEWSCTL/bin:$NEWSBIN/batch:$NEWSBIN:$NEWSPATH ; export PATH
umask $NEWSUMASK

if test ! -r $NEWSCTL/sites.$1
then
	echo "$0: cannot read \`sites.$1'" >&2
	exit 1
fi
sites="`cat $NEWSCTL/sites.$1`"

cd $NEWSARTS/out.going/$1
trap 'rm -f temp ; exit 0' 0 1 2 15
cat >temp

for site in $sites
do
	uux -r -gd -l $site!rnews '<' !temp
done
