info-cvs
[Top][All Lists]
Advanced

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

Re: modifying CVS modules file, please, help


From: Eric Siegerman
Subject: Re: modifying CVS modules file, please, help
Date: Mon, 25 Feb 2002 12:28:01 -0500
User-agent: Mutt/1.2.5i

On Mon, Feb 25, 2002 at 07:42:09AM -0800, Sergey Malov wrote:
> My main problem is the following. To build a package, I need to create
> directory structure, which has, among others, directory
> "package/scripts". This directory has to have files from the different
> directories in repository, namely
> 
>   all files from the directory "proj1/scripts"
>   files a.pm, b.pm from the directory "proj2/subdir2/perl"
>   files c.sh, d.sh from the directory "proj3/misc"
> 
> I would like to be able to update "package/scripts" directory in one
> pass and be able to commit a.pm, b.pm, c.sh, and d.sh back to
> repository.

CVS simply CANNOT do this, with the modules file or any other
way; the data structures don't support it.  The file
package/scripts/CVS/Repository has to contain the pathname of the
directory within the repo where the ,v files live, and it can
only contain one pathname.

You'll have to find another way.  Here are some possibilities;
there may be others:
 1. Use a Makefile, shell script, etc. to copy the files into
    package/scripts after checkout.

 2. Instead of copying the files, create symlinks in
    package/scripts, pointing to the files' checked-out locations
    in proj1/scripts etc.  This still requires a Makefile or
    whatever, but has a big advantage over copying: people can
    edit package/scripts/c.sh and not have to worry about copying
    the modified file back to proj3/misc, since it's already
    there :-)

 3. Reorganize the repo.

 4. Modify CVS.  This is almost certainly the most difficult, but
    (if your changes are accepted by the CVS maintainers) it'll
    solve the problem for good.

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
One ring to rule the mall.
        - Movie review headline, eye Magazine



reply via email to

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