-
Login to Turing and create the directory /cs/cs121/year/semester/proji/Teamj/CVS.
For example, if you are part of Team4 in the spring of 2004 working on project 1 you would execute
the following commands:
cd /cs/cs121/2004/spring/proj1/Team4
mkdir CVS
-
Change the group ownership of the CVS directory to 121teamj. Continuing with the previous
example
you'd execute the following:
chgrp 121team4 CVS
-
Change the directory persmissions of CVS to allow group read/write/execute and to set the sticky bit:
chmod 770 CVS
chmod g+s CVS
-
Now set your CVSROOT environment variable to the CVS directory. Continuing the previous
example you'd execute the following:
setenv CVSROOT /cs/cs121/2004/spring/proj1/Team4/CVS
-
Now initialize the repository as follows:
cvs init
-
Now import a directory of files into the repository. Suppose you have a directory called ~/code that
includes your source files (perhaps in some directory structure). To import the directory and
all of its contents do the following.
cd ~/code
cvs import code yes ok
You will be dropped into an editor to provide comments for your current action. Add comments "creating code
directory" then exit the editor.
You should see a sequence of messages adding the files in code to the repository.
-
Now examine the directory:
cd /cs/cs121/year/semester/proji/Teamj/CVS
ls -al
You should find the CVS/code directory with group set to 121teamj and group read/write/execute permission.
The original directory structure should be replicated but with the appropriate
group ownership/permissions.