Next: Miscellaneous
Up: Developer's Guide
Previous: Test Example
Contents
Index
CVS Help
CVS is a version control system. Using it, you can record the history of sources files, and documents. For detailed information, you may refer http://www.gnu.org/software/cvs/http://www.gnu.org/software/cvs/.
This document gives the typical usage of CVS under Unix/Linux
platforms. The intended audience are EMAN2 developers.
- Before you use CVS, set up environmental variable CVSROOT. For
EMAN/EMAN2, set up the following in your shell startup script:
- for csh/tcsh
- %
- setenv CVS_RSH ssh
- %
- setenv CVSROOT
"blake.3dem.bioch.bcm.tmc.edu:/usr/local/CVS/CVS"
- for bash/sh/zsh
- %
- export CVS_RSH=ssh
- %
- export
CVSROOT="blake.3dem.bioch.bcm.tmc.edu:/usr/local/CVS/CVS"
NOTE: The following supposes you put EMAN2 under $HOME/EMAN2.
- To check out EMAN2 source code, run
- %
- cd $HOME/EMAN2/src
- %
- cvs co eman2
- To add new files, run
- %
- cd $HOME/EMAN2/src/eman2
- %
- cd YOUR-DIRECTORY
- %
- cvs add YOUR-FILES
- %
- cvs commit
- To remove files, run
- %
- cd $HOME/EMAN2/src/eman2
- %
- cd YOUR-DIRECTORY
- %
- cvs remove YOUR-FILES
- %
- cvs commit
- To check in modified existing files, run
- %
- cd $HOME/EMAN2/src/eman2
- %
- cvs ci
- To update your source code to the latest version in the CVS tree, run
- %
- cd $HOME/EMAN2/src/eman2
- %
- cvs update
NOTE: read the output from the above command. If you see merging conflicts, you must resolve them first.
Next: Miscellaneous
Up: Developer's Guide
Previous: Test Example
Contents
Index
2013-06-11