/ acm / sigsoft / cvs workshop / Nov '96

Creating a New Module

In CVS parlance, a "module" is a directory heirarchy... MORE

Putting an existing project into CVS

Let's say you've been working on the Frobozz Magic C Compiler (fmcc) and you want to put it under version control. If it lives in a directory called fmcc, you could:
$ cd fmcc
$ cvs import -m "imported sources" fmcc frobozzco V_0_9
CVS will create a fmcc directory in the CVSROOT and import the current directory and it's children into revision control. The last two arguments are the vendor and release tags. They don't have to have any special meaning.

You can make sure that this worked by saving the old directory and checking the project out of the CVS repository:

$ cd ..
$ mv fwcc fwcc.orig
$ cvs checkout fwcc
$ cd fwcc ; ls 

Starting a fresh project

$ mkdir hello
$ cd hello
$ cvs import -m "new project started" hello new start
You now have a module called "hello" with no files in it.

Notes about checked out projects

There will be a CVS directory in each directory of a checked out project. CVS uses files in the CVS directory to maintain state. Do not modify or delete these files or you will no longer be able to use that checked out copy.