On 24 Apr 2008 15:10:31 -0700, Daniel Yek wrote:
Hi,
I am having problem getting consistent output using a cvs command to
list on the module directories.
cvs -d <whatever> co -l \.
If I check out a module here, the output of the following command will
be different from if I don't check out any module here.
cvs -q -n up -d 2>&1 | cut -f 5 -d' ' | sed "s/\`\|'//g" -
This might be caused by the entries in CVS/Entries.Log file, but I am
not sure.
Is there a way to modify the cvs command above to consistently list
the module directories only (without second-level directories in the
output) in an existing source directory?
Thanks.
Hi Daniel,
This seems a little dangerous.
The usual way to get a Table Of Contents of your modules is to create
it yourself using the modules file.
cvs -d <repos> checkout -d cvsmodules CVSROOT/modules
cd modules
Add lines like this:
CVSROOT CVSROOT # cvs administration stuff, not for regular users
cvsmodules CVSROOT modules # *** to edit what you're looking at now!
module1 path/to/module1 # *** Nice descriptive comment
Then when you do
cvs -d <repos> checkout -c
you will get a listing that looks like this:
CVSROOT CVSROOT
# cvs administration stuff, not for regular users
cvsmodules CVSROOT modules
# *** to edit what you're looking at now!
module1 path/to/module1
# *** Nice descriptive comment
Is that more like what you want?