#
# waiting script
#					Shuu Yamaguchi <shuu@dotAster.com>
# $Id: func_wait,v 1.2 2004/04/04 15:48:31 shuu Exp shuu $

if [ -n "$MURASAKI_FUNC_WAIT" ];then
	return
fi
MURASAKI_FUNC_WAIT=1

wait_file() {
	fname=$1
	shift
	for sec in $*
	do
		if [ ! -f $fname ];then
			sleep $sec
		fi
	done
}

