Tuesday, September 12, 2006

Setting Up CVS

You can follow the steps below on Athena to create a cvs repository and import the skeleton to begin working on the project. Lines beginning with # are comments.

cd /mit/6.035/groups/leXX
mkdir cvsroot

#set your CVSROOT, should be added to your startup script
#bash
export CVSROOT=/mit/6.035/groups/leXX/cvsroot
# or csh
setenv CVSROOT /mit/6.035/groups/leXX/cvsroot

#create the repository
cvs -d $CVSROOT init

#import the skeleton
cd /mit/6.035/provided/skeleton
#the option compilier is the parent directory for the project
#leXX is a vendor tag and start is a release tag
cvs import -m "Importing Skeleton" compiler leXX start

Now you can run 'cvs checkout project' to check out the skeleton where you want to begin working.

If you would like to work on non-athena computer that has linux and CVS, you can use remote CVS by setting the environment variable CVS_RSH to "ssh" and setting your CVSROOT to:
:ext:username@ant.mit.edu:/mit/6.035/groups/leXX/cvsroot

Then you can run cvs checkout from your linux box.

0 Comments:

Post a Comment

<< Home