[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: New CVSROOT, old sandbox.
From: |
Eric Siegerman |
Subject: |
Re: New CVSROOT, old sandbox. |
Date: |
Thu, 6 Sep 2001 20:06:15 -0400 |
User-agent: |
Mutt/1.2.5i |
On Thu, Sep 06, 2001 at 03:21:01PM -0700, Jimmy Rimmer wrote:
> What's the easiest way to change the CVS/Root entries? The directory
> structure is mind-bogglingly huge.
for f in `find . -type f -print | grep 'CVS/Root$'`; do
echo newserver:/newroot >$f
done
That's safer than
find . -type f -name Root -print | ...
because it checks that the parent directory is named "CVS".
Of course, if your CVS/Repository files have absolute pathnames,
those need to be munged too. People have posted Perl scripts to
do that, or you could use something like:
find . -type f -print | grep 'CVS/Repository$' |
xargs perl -i.bak -p -e 's,^/oldroot/,/newroot/,'
All of the above are UNTESTED, so use with caution.
--
| | /\
|-_|/ > Eric Siegerman, Toronto, Ont. address@hidden
| | /
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea.
- RFC 1925 (quoting an unnamed source)