> > > This has the side-effect(?) that all sources checked out from the 'old'
> > > repository location have references to /local/CVSfoo whereas cvs update
> > > obviously wants to have the references to /local2/CVSfoo.
> >     The simplest way is to replace content of CVS/Root files. They
> > contain full path to repository.
> 
> Yes. Shell is your friend.
> 
> find /local2/CVSfoo -name "Root" | xargs sh -c "mv $a $a.old ; sed -e
> 's:/local/:/local2/:g' $a.old > $a && rm $a.old"
> 
> or something.

Or even more paranoid and slightly shorter. ;)


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



Nate


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

Reply via email to