- publishing free software manuals
Version Management with CVS - the CVS manual
by Per Cederqvist et al.
Paperback (6"x9"), 216 pages, 8 figures
ISBN 0954161718
RRP £19.95 ($29.95)

Get a printed copy>>>

3.1.3 Creating a directory tree from scratch

For a new project, the easiest thing to do is probably to create an empty directory structure, like this:

$ mkdir tc
$ mkdir tc/man
$ mkdir tc/testing

After that, you use the import command to create the corresponding (empty) directory structure inside the repository:

$ cd tc
$ cvs import -m "Created directory structure"
    yoyodyne/dir yoyo start

This will add yoyodyne/dir as a directory under $CVSROOT. Use cvs checkout to get the new project.

$ cd ..
$ cvs co yoyodyne/dir

Check that the permissions CVS sets on the directories inside $CVSROOT are reasonable. Then, use cvs add to add files (and new directories) as needed (see section 7.1 Adding files to a directory).

ISBN 0954161718Version Management with CVS - the CVS manualSee the print edition