John E
June 10th, 2008, 12:06 PM
I hope this is the right forum for a question like this....
Some time ago I joined an open-source project at SourceForge. I used a CVS client called TortoiseCVS to check out all the source files (which are mostly C and C++).
I haven't been involved in the project for a while but recently, I needed to update my local copy. Unfortunately, the CVS root repository has changed.
AFAICT, TortoiseCVS has no ability to change the location of a project's CVS root. The only way I could do this would be to look in every CVS folder on my system and replace the file called 'root' (which contains a URL to the CVS root). Unfortunately, there are hundreds of these files.
I'm looking for either a batch file or script (that I could run from a command line) which would recurse through all the folders on my hard drive and change the contents of every file it finds called 'root'. It's a long time since I used batch files (and I've never used scripts at all) and yet I've got a gut feeling that this is the kind of thing that could be achieved in a few simple lines, if a suitable batch or scripting language was used.
Can anyone start me off in the right direction?
Some time ago I joined an open-source project at SourceForge. I used a CVS client called TortoiseCVS to check out all the source files (which are mostly C and C++).
I haven't been involved in the project for a while but recently, I needed to update my local copy. Unfortunately, the CVS root repository has changed.
AFAICT, TortoiseCVS has no ability to change the location of a project's CVS root. The only way I could do this would be to look in every CVS folder on my system and replace the file called 'root' (which contains a URL to the CVS root). Unfortunately, there are hundreds of these files.
I'm looking for either a batch file or script (that I could run from a command line) which would recurse through all the folders on my hard drive and change the contents of every file it finds called 'root'. It's a long time since I used batch files (and I've never used scripts at all) and yet I've got a gut feeling that this is the kind of thing that could be achieved in a few simple lines, if a suitable batch or scripting language was used.
Can anyone start me off in the right direction?