10. Creating the CVS repository

Once CVSROOT has been set, the base entry for CVS can be added. This is the top level for the directory structure of the repository.

This is done using the cvs import command. The following steps show how it can be done.

	$ cd <top of tree>
	$ cvs import <module-name> <vendor-tag> <release-tag>

e.g. suppose we wish to import a directory structure called myproject, which was obtained from "customer" and is labelled "releaseone" we would do:

	$ cd path/to/myproject
	$ cvs import myproject customer releaseone

If we wanted to create a clean, new directory structure called mynewproject we could do something like this.

	$ mkdir mynewproject
	$ cd mynewproject
	$ cvs import mynewproject mycompany start

This is pretty much all that has to be done to start up the CVS repository - after this the repository can be used in the normal way. It is also possible to import several modules to the same CVS repository. e.g.

	$ cd path/to/src
	$ cvs import src S3 src0
	$ cd path/to/docs
	$ cvs import docs S3 docs0

But as was said earlier, this is not the place to provide a complete introduction to CVS. Go out and find some of the abundant documentation that is available for it on the web and elsewhere. Most importantly, if you run into a problem with CVS, it is NOT the GForge administrator's fault so don't go running to them every time. Try to figure it out yourself or go looking for help on CVS related news groups.