#! /bin/sh
# co-all -- Checks out all RCS files in $1 (and its subdirectories).
# (Except that subdirectories containing a file called XV_ONLY are not touched.
# In a cataclysm, this shell script should be used prior to using "makeV".

startDir=$1

cd $startDir
for file in * ; do
    if [ -d $file ] ; then
	if [ ! -f $file/XV_ONLY ] ; then
	    case $file in
		RCS)
			echo $startDir
			co -q RCS/*,v
		;;
	    *)
		$0 $startDir/$file
		;;
	    esac
	fi
    else
	case $file in
	    *,v)
		echo $startDir
		co -q $file
		;;
	esac
    fi
done
