On Tuesday, March 28, "Jagan Nemani" wrote:
>
> Suppose there is this file that wanted to checkin into the repository.
cvs add file.c
cvs commit file.c
or
cvs import ...
> This is a C-Code which I need to compile into one of my modules. Once
> this goes into CVS its format changes to that of CVS.. So if I want a
> CVS to store this copy as it is in some other directory so that I can
> source this file from that directory, how do I do it?
Huh?!? What do you mean "source"? You mean you wish to have one file
in multiple "locations" in the CVS tree? If so, have a look at the
CVS modules file. Also, (although not really recommended) a symlink
within the repository may do what you wish, but there are quite a number
of caveats with doing that...
> Like wise I would want CVS to make a original copy of any file that I
> checkin into this directory after storing that file in the repository.
Now I'm very confused. What do you mean "make a copy of the original"?
What original? I think you do not understand the concept of CVS and how
it uses its repositories. The "working" code is pretty much always a
copy of something in the repo.
> How do I tell CVS to do that always?
>
> This picture would give you a clear idea of what I want
> Main Directory
> |
> -------------------------------------------------
> | |
> repository source
> | |
> code.c,v code.c
Please read the CVS documentation. I really can't make heads, nor tails
of the above diagram. The description you give does not help much either.
--Toby.