Module Maintenance
home directory, /home/sam, called /home/sam/cvsroot, I would issue the following
command:
$ cvs d /home/sam/cvsroot init
Once you've initialized the repository, you need to tell CVS about it. You could
specify a d option to all your commands as I did with cvs init earlier, but that
would get very tiresome. Instead, set the CVSROOT environment variable in your
shell to the name of the repository directory. For example, I use the bash shell and
I have a line in my .bash_profile file like this:
export CVSROOT=/home/sam/cvsroot
After this step, all your cvs commands will use /home/sam/cvsroot as the repository.
Using a Remote CVS Repository with SSH
The most common usage of CVS via the Internet is through ssh. This is the way the
free CVS server on SourceForge works, and I'll use it as an example. Since the folks
at SourceForge have already initialized your CVS repository, you don't need to do a
cvs init operation. All you need to do is set up two environment variables
CVSROOT and CVS_RSH. For example, to access a repository stored on the machine
cvs.foo.sourceforge.net in the path /cvsroot/foo using ssh with the username
sam , I would make these settings:
$ export CVSROOT=:ext:sam@cvs.foo.sourceforge.net:/cvsroot/foo
$ export CVS_RSH=ssh
The first line tells CVS where to look for the repository, and the second tells CVS to
use ssh instead of rsh to connect to the server. If you're using SourceForge, you can
find the values for both these variables on your project's CVS page.
The SourceForge servers also provide access using CVS's pserver protocol for
anonymous access. Anonymous CVS access is a read only service it allows
external developers to access the CVS tree and produce patches from it without
being able to alter its state. See the SourceForge project's CVS page for details on
connecting as an anonymous user.
Importing Your Module
To start using CVS with your module, you'll need to import your source into CVS.
When you import your module into CVS, space is created in the CVSROOT for your
project. To get started, make sure you have just the files you want to store in CVS in
15
151
1
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved