On Thursday, March 09, 2000 4:54 AM, Chris Hirsch
[SMTP:[EMAIL PROTECTED]] wrote:
> Hey All...
>
> I'm trying to set up a modules file for my project and I'm confused.
First
> of all is there any place I can go to get real-world info, tips, tricks,
> etc on setting up module files?
>
> My question is this. I have a project that I want to be able to check out
> either in its whole or check out various sub-modules instead.
>
> Here is how its laid out (any other suggestions for this are more than
> welcome):
>
> /src
> /pages
> /tsd
> /src
> /inc
> /pages
> /tsd
>
> My goal is if you check out a sub-module, say tsd then you will get a
> simlar structure of /src/tsd and /src/inc/tsd but if you check out other
> modules too it will fit nicely and just add it to the /src structure.
Like
> above. My problem is that for the life of me I can't figure out how to do
> a modules file for this or if its even possible or feasable. Any
> suggestions or recommendations you have would be GREATLY appriceated!
>
> BTW this is sort of what my modules file is looking like:
>
> Src -d src src/src
> Inc -d inc src/inc
> src &Src &Inc
>
> PagesSrc -d pages src/pages
> PagesInc -d inc/pages src/inc/pages
> pages &PagesSrc &PagesInc
>
> IOS &src &pages
>
We've found that the trick to doing this correctly is to include a -d on
the ampersand modules, and include another level of indirection.
So your modules would look something like:
_src -d src src/src
_inc -d inc src/inc
_pages_src -d pages src/pages
_pages_inc -d inc/pages src/inc/pages
_tsd -d tsc src/tsc
project -d project &_src &_inc &_tsd &_pages_src
project_src -d project &_src
project_inc -d project &_inc
project_tsd -d project &_tsd
project_pages -d project &_pages_src &_pages_inc
Only modules without the _ at the start are publicly notified modules.
This will give a checked out structure of
project/src
project/inc
project/pages
project/inc/pages
BUT you must check out the project_pages AFTER you have checked out
something into inc, otherwise CVS will record a Repository of Emptydir for
inc and you will then not be able to check out files to inc!
***************************************************************
Chris Cameron Open Telecommunications NZ Ltd
Software Development Team Leader
[EMAIL PROTECTED] P.O.Box 10-388
+64 4 495 8403 (DDI) The Terrace
fax: +64 4 495 8419 Wellington
cell: +64 21 650 680 New Zealand
Life, don't talk to me about life ....(Marvin - HHGTTG)