#!/bin/sh # # A recursive routine to update the NEW rcp database format in # the cvs repository. # # It is assumed that the current working directory is the checked # out copy of the repository and that the CVSROOT environment # variable is set to the writable repository. # # The required argument is the release. # The optional argument is the directory in which to start. # if [ -z "${My_dir}" ] then export My_dir; My_dir=$BFDIST/releases/development/Release/Scripts fi release=${1} if [ -z "${release}" ] then echo USAGE: $0 release start_dir exit fi dir=${2} [ -z "${dir}" ] && dir=`pwd` [ -n "${dir}" ] && cd ${dir} echo "Checking directories in `pwd`" if [ ! -d CVS ] then exit fi new_dirs=`${My_dir}/test_rcpdb_dirs` if [ -n "${new_dirs}" ] then cvs -d $CVSROOT add $new_dirs fi for f in * do [ -d ${f} -a -d ${f}/CVS ] && dirs="${dirs} ${f}" done if [ -n "${dirs}" ] then for d in ${dirs} do ${My_dir}/recur_Update_rcpdb ${release} ${d} done else echo Checking files in `pwd` new_files=`${My_dir}/test_rcpdb_files` if [ -n "$new_files" ] then cvs -d $CVSROOT add ${new_files} fi fi