echo
echo "This shell script processes all files in the News:In.Coming directory"
echo "  Only compressed files are distributed.  In coming news must be"
echo "  in compressed format with the trailing '.z' on the filename."
echo "  Note that this script uses a version of the 16-bit compress."
echo

label loop
	cd News:In.Coming
	echo *.z >RAM:tmp

	input list <RAM:tmp
	if $list
		strhead one " " $list
		strhead two ".z" $one
		echo $one -- $two

		echo "acomp -d <" $one ">" RAM:$two
		acomp -d <$one >RAM:$two
		echo "relaynews -df <" RAM:$two
		relaynews -df <RAM:$two

		rm RAM:$two News:In.Coming/$one
		goto loop
	endif
	unset list one two
	rm RAM:tmp
