On Wed, 1 May 2002 [EMAIL PROTECTED] wrote:
> > I have made a mistake in accessing the host: I used
> >
> > :pserver:cvs@localhost:/home/cvs/repository
> >
> > and wanted to use
> >
> > :pserver:[EMAIL PROTECTED]:/home/cvs/repository
> >
> > Is it dangerous to do this? I do not have other files called Root.
> > I do not want to redownload everything from remote (the problem is: I
> > used this tree locally and burned it to a CDR).
> >
> > find -type f -name 'Root' \
> > -exec perl -pi -e 's/localhost/some.hostname/g' {} \;
I use a variant:
find . -type f -name 'Root' | \
xargs perl -pi.bak -e 's/localhost/some.hostname/'
This tends to launch perl only once or twice, depending upon the
size of the tree, thanks to xargs.
I prefer using perl rather than a 'cp' because some of our modules
are nested and I don't trust the Root file to be identical all
through the tree. Maybe they are, maybe they aren't.
It also makes it easier to repair damage should some foolish programmer
have a file named 'Root' with other content.
--
Joi Ellis Software Engineer
Aravox Technologies [EMAIL PROTECTED], [EMAIL PROTECTED]
No matter what we think of Linux versus FreeBSD, etc., the one thing I
really like about Linux is that it has Microsoft worried. Anything
that kicks a monopoly in the pants has got to be good for something.
- Chris Johnson
_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs