3.6. CVS

The LDP is providing CVS access to authors. There are a few good reasons for this:

  1. CVS will keep an off-site backup of your documents. In the event that you hand over a document to another author, they can just retrieve the document from CVS and continue on. In the event you need to go back to a previous version of a document, you can retrieve it as well.

  2. It's great to have many people working on the same document. You can have CVS tell you what changes were made while you were editing your copy by another author, and integrate those changes in.

  3. CVS keeps a log of what changes were made. These logs (and a date stamp) can be placed automatically inside the document when you use some special tags that get processed before the SGML processor.

  4. It can provide for a way for a program to automatically update the LDP web site with new documentation as it's written and submitted. This is not in place yet, but it is a potential goal. Currently, CVS updates signal the HOWTO coordinator to update the LDP web page, meaning that if you use CVS, you're not required to e-mail your SGML code.

If you're completely new to CVS, there are a few web pages you may want to look at which can help you out:

3.6.1. Getting a CVS account

First you'll need to get an account at the LDP's CVS Repository. This is pretty much the root directory that is used by CVS, with various projects (HOWTOs, mini HOWTOs, etc.) created as subdirectories of it.

Please fill the form: http://tldp.org/cvs/

During filling the form we want you to inform us about your plans, eg. which Howto you maintain.

Your unique CVSROOT directory will be created and you'll get an e-mail with a response. When you get your response, log into your CVSROOT and make sure everything is set up properly:


bash$ export
	CVSROOT=:pserver:your_userid@cvs.tldp.org:/cvsroot
bash$ cvs -d $CVSROOT login

(Replace the your_userid with what you were sent in the response e-mail).

You will be asked for your password, and then be given access to the CVS Repository in read-write mode. Once you've used cvs login once and have been given access to the system, your password is stored in .cvspass and you will not have to use cvs login again. Just set the CVSROOT and continue on. You can get the entire repository with this command:


bash$ cvs get LDP

Or you can get the SGML source for your own document with these commands:


bash$ cvs get LDP/howto/docbook/YOUR-HOWTO.sgml
bash$ cvs get
guide/docbook/YOURGUIDE 

3.6.2. Other CVS repository notes

3.6.3. Common CVS Commands

3.6.3.2. Adding new files

If your document contains graphics or multiple files, you may come to a point where you need to add new files to your cvs repository.

To do this, make sure that your HOWTO is in its own directory. You may want to coordinate with the people at to ensure you can add graphics or other files to your HOWTO.

Once this is set up, use cvs get to get the latest copy of your HOWTO. In most cases, the command will be similar to cvs get LDP/howto/docbook/YOUR-HOWTO/ assuming that your CVSROOT is set.

Copy in the files that you want to add to the repository. The command cvs add filename will tell the CVS server that you want to add filename to the repository. You can now use cvs commit to commit the changes to the CVS server. When finished, the files are now part of the repository.