#! /bin/sh
# unlock - remove lock(s)

# =()<. ${NEWSCONFIG-@<NEWSCONFIG>@}>()=
. ${NEWSCONFIG-/etc/news/bin/config}

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

status=0
for lname
do
	case "$lname" in
	*/*)	lock="$lname"	;;
	*)	lock="$NEWSCTL/$lname"	;;
	esac
	
	if test ! -f "$lock"
	then
		echo "$0: cannot find \`$lock'" >&2
		status=1
	else
		rm -f "$lock"		# alas, no useful exit status
	fi
done
exit $status
