Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jan 2000 11:39:31 -0700
From:      Nate Williams <nate@mt.sri.com>
To:        Alexander Langer <alex@big.endian.de>
Cc:        Boris Popov <bp@butya.kz>, Wilko Bulte <wilko@yedi.iaf.nl>, FreeBSD hackers list <FreeBSD-hackers@FreeBSD.ORG>
Subject:   Re: moving CVS repository
Message-ID:  <200001091839.LAA16606@mt.sri.com>
In-Reply-To: <20000109140633.A3812@cichlids.cichlids.com>
References:  <20000109124420.A60996@yedi.iaf.nl> <Pine.BSF.4.10.10001091854030.5106-100000@lion.butya.kz> <20000109140633.A3812@cichlids.cichlids.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200001091839.LAA16606>