>>>>> "Nate" == Nate Williams <[EMAIL PROTECTED]> writes:

    Nate> find /local2/CVSfoo -name Root -print | fgrep CVS | perl -pi
    Nate> -e 's#/local#/local2/#g;'

Perl? Bah! (I wrote this to also handle a rename of our CVS server. Adjust
as necessary.)

#!/bin/sh

for i in `find . -type d -name CVS -print`; do

        if [ -f $i/Root ] ; then
                echo ':kserver:cvs.example.org:/cvs' > $i/Root
        fi
        if [ -f $i/Repository ] ; then
                ed $i << _EOF
%s;/usr/local/cvs/sendmail;/cvs/sendmail;
w
q
_EOF
        fi
done



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to