#! /bin/sh
# Acts exactly like sendbatch, except spools outgoing messages for nntp
# instead of batching them.
#
# The command "spoolnntp newsvax hplabs notesvax" spools messages for the
# three systems listed.
#
#  $LIBDIR/sys/newsvax.seq   -- sequencer for newsvax
#  $LIBDIR/sys/newsvax.out   -- files to send to newsvax, in notesrc(5) format

LIBDIR=__LIBDIR__
TMPFILE=/tmp/nfbatch$$
RMTDIR=$LIBDIR/sys

for rmt in $*
do
	$LIBDIR/newsoutput -N -t $rmt -f $RMTDIR/$rmt.out
done
rm -f $TMPFILE
