info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: difficult modules setup question


From: Jerry Nairn
Subject: RE: difficult modules setup question
Date: Fri, 21 Dec 2001 11:08:02 -0800

The modules documentation is hard to follow, I suspect because these
features were not carefully planned. Here's a method you don't seem to have
tried.

> From: Thomas S. Urban [mailto:address@hidden
> Sent: Friday, December 21, 2001 12:28 AM

> need.  Ideally, overlap between modules should result in only a single
> checkout in the sand box.  This  is a greatly simplified view of what
> our repository looks like.  The build files under top are required by
> all projects, but everything else depends on the module.
> 
> Repository:
> top/
>       build.file.1
>       build.file.2
>       build.file.3
>       libraries/
>               lib1/
>               lib2/
>               lib3/
>               lib4/
>               ....
>       apps/
>               app1/
>               app2/
>               app3/
>               ....

> I am having a great deal of difficulty setting up the modules 
> to acheive
> this result.  If I define these modules:
> 
> _libraries_lib1               -a      libraries/lib1
> _libraries_lib2               -a      libraries/lib2
> _libraries_lib3               -a      libraries/lib3
> _apps_app1            -a      apps/app1
> _apps_app2            -a      apps/app2
> _apps_app3            -a      apps/app3

##########
_topfiles -a !top/libraries !top/apps top 
##########

> Modules 1 is 'app1', requires lib1, lib2, build files, this 
> is what the
> sandbox should look like after 'cvs co app1':
> 
> top/
>       build.file.1
>       build.file.2
>       build.file.3
>       libraries/
>               lib1/
>               lib2/
>       apps/
>               app1/

##########
app1 -a _libraries_lib1 libraries_lib2 _apps_app1 _topfiles
##########
NOTE: The order is very important here. If topfiles was first, nothing from
libraries or apps would be checked out.

> Module 2 is 'app2', requires lib2, lib3, build files, this is what the
> sandbox should look like after 'cvs co app2':
> 
> top/
>       build.file.1
>       build.file.2
>       build.file.3
>       libraries/
>               lib2/
>               lib3/
>       apps/
>               app2

##########
app2 -a _libraries_lib2 libraries_lib3 _apps_app2 _topfiles
##########

> A developer working on module 1 and module 2 should get a sandbox that
> looks like this after 'cvs co app1 ; cvs co app2':
> 
> top/
>       build.file.1
>       build.file.2
>       build.file.3
>       libraries/
>               lib1/
>               lib2/
>               lib3/
>       apps/
>               app1
>               app2

cvs co app1 app2
should work as desired.
Cheers,
Jerry

 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]