On Tue, Apr 01, 2003 at 02:26:20PM -0700, jdaues wrote:
> Newbie error:
> 
> Trying to create a project from source code
> Source code is on cdrom in /mnt/cdrom/Foo/
> 
> CVSROOT is set to /usr/local/cvs-repository
> 
> Created repository with:
> cvs -d /usr/local/cvs-repository init

Ok so far.

> Create /usr/local/cvs-repository/Foo
> 
> Command is (after 3.1.1. in cederqvist):
> cvs import -m "Imported sources" /mnt/cdrom/Foo MyCompany start

The first argument isn't where to find the input files, but where
within the repository to put the results.  It must be a relative
pathname, and is interpreted relative to CVSROOT.  The source for
"cvs import" is always the current directory.

So what you wanted was something like:
        cd /mnt/cdrom/Foo
        cvs import -m "Imported sources" Foo MyCompany start

That argument can have more than one level.  You could say:
        cvs import -m "Imported sources" MyProject/something/Foo MyCompany start
if you wanted the stuff to end up deeper inside the repo.  (CVS
will create the intermediate directories if necessary.)

--

|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        [EMAIL PROTECTED]
|  |  /
A distributed system is one on which I cannot get any work done,
because a machine I have never heard of has crashed.
        - Leslie Lamport


_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to