Modelling clouds and climate

Setting up CVS

Path: Contents > About CVS > Setting up CVS
Site Map

Contents

About CVS
  • Setting up CVS
  • Using the CVS Server
  • Commands and
      Terminology
  • pcl-cvs
    Using CVS
  • How was SCM set up?
      (import)
  • Getting the ubcscm
      (checkout)
  • Making changes
      (update/diff)
  • Commiting your changes
      (commit)
  • Releasing you work
      (release)
    Other CVS Commands
  • Examining Changes
      (log)
  • Add and Delete Code
      (add/del)
  • Status/revisions
  • Tags
  • Branches
    Spetial Topics
  • Writing Log
  • Handling Conflicts
    References



    Web Contact: Phil Austin
    Site created with Cheetah.

    Last updated: Mar 13 2003
  • Setting up CVS

    CVS records everyone's changes to a given project in a directory tree called a repository. Before you can use CVS, you need to set the CVSROOT environment variable to the repository's path. CVSROOT should be set to "/nfs/roc/home/cvs". If there is no global definition made for this variable you need to enter the following commands

    If your shell is csh or one of its descendents:

     $ setenv CVSROOT /nfs/roc/home/cvs
     

    If your shell is Bash or some other Bourne shell variant:

     $ export CVSROOT=/nfs/roc/home/cvs
     

    If you forget to do this, CVS will complain when you try to use it:

     $ cvs checkout ubcscm
     cvs checkout: No CVSROOT specified!  Please use the `-d' option
     cvs [checkout aborted]: or set the CVSROOT environment variable.
     $ 
     

    You can also add this to your .bachrc, .cshrc or any initialization file that you use, so you don't have to specify it each time you log on.

    You can invoke a CVS command without having the CVSROOT specified by using -d global option followed by the path to the repository:

     $ cvs -d /nfs/roc/home/cvs command
     
    (See General Patterns and Using the CVS Server for more information)