Using CVS to Modify CDFXXX

University of Chicago

CDF Group



CVS - Concurrent Versions System:
We are using the CVS system to modify the cdfnote cdfxxx.tex. CVS allows us to safely modify cdfxxx.tex and its associated figures/plots. Namely, we may make changes to these files without the nagging question: "Is this the correct file to update or is there a newer version?"

The cdfxxx files are stored in a 'repository' created by CVS. To modify these files you must 1) check out the repository, 2) make your modifications, and 3) check in your modified files.

For additional information consult the CVS Home Page .


Commands to use CVS
In your home directory (on CDF - Unix Machine) type:

(1)$ source /home/cdf/gamma/setup
(2)$ cvs co cdfxxx

Command (2) creates (if one does not already exist) the directory 'cdfxxx' in your home directory containing the files in the repository. If you wish to modify cdfxxx.tex you can:

(3)$ cd cdfxxx
(4)$ emacs cdfxxx.tex &

Command (4) opens 'cdfxxx.tex' in emacs editor. In order to modify this file you need to check it out. In emacs menu item 'Check In/Out' -

(5) 'Tools' Menu
-- 'Version Control'
-- 'Check In/Out'

Now you are free to make changes to cdfxxx.tex. When you have completed your chanes and saved the file you need to check it back into the repository.

(6) 'Tools' Menu
-- 'Version Control'
-- 'Check In/Out'

Creating a new cdfxxx.ps file
After you have committed your changes to cdfxxx.tex to the repository, you should make an updated version of of the postscript file. At the prompt, (you should be in the ~/cdfxxx directory)

(7) $ rm cdfxxx.ps
(8) $ latex cdfxxx.tex
(9) $ dvips -o cdfxxx.ps cdfxxx.dvi
(10)$ cvs commit -m "Short Mail message" cdfxxx.ps

You are free to print out the cdfxxx.ps file in your directory. In addition, (10) commits the updated version to the repository for everyone to obtain.

Cleaning Up your directory
Once you have completed changes you may wish to remove your working copy of the cdfxxx directory. Note: This removes everything in your cdfxxx directory.

(11)$ cd ..
(12)$ cvs release -d cdfxxx

(11) should take you back to your home directory. If you want to view the repository again commands (1) and (2) will recreate the repository in your home directory.

Created by Troy Andre (troy@hep.uchicago.edu) January 15, 1999.