#!/bin/sh
#	This file is part of the Concurrent Versions System CVS.
#	Written by Dick Grune, Vrije Universiteit, Amsterdam.
#	$Header: LAU,v 3.1 89/09/25 16:32:18 dick Exp $

#
#		L i s t   A l l   U s e r   d i r e c t o r i e s
#	LAU lists all user directories under CVS that are subdirectories of
#	the working directory, according to the criterion that a user
#	directory under CVS contains a directory CVS.adm.
#
Name=LAU; export Name

# CVSBIN, CVSLIB and RCSBIN directories
CVSBIN=/home/top/dick/cvs
CVSLIB=/home/top/dick/cvs
RCSBIN=${RCSBIN-/usr/local/bin}
export CVSBIN CVSLIB RCSBIN

# avoid spurious identifications
PATH=${CVSPATH-/bin:/usr/bin}; export PATH

case "$1" in
"")	# OK
	;;
*)	# error
	echo Call is: $Name \(works on working directory\) >&2
	exit 1
	;;
esac

find . -type d -a -print |
while	read UserDir
do
	if	# this is a directory under CVS
		[ -d $UserDir/CVS.adm ]
	then	# report it
		echo $UserDir
	fi
done

exit 0
