Using CVS for Your Team Projects
Using CVS is not madatory but I will give 2/100 extra points if you use it. I recommend to use
it since it makes it easier to work in team projects.
Learning how to use CVS requires some time but it is
worth it. See a brief tutorial in:
CVS tutorial 1
and CVS tutorial 2
To create the CVS shared directory do the following:
- You and your teamates will need to work in lore.cs.purdue.edu. All the
students registered in CS251 should already have an account there. We will
start allowing submissions from lore when it is time to turnin lab5.
You may turnin also lab4 again in lore when it is time to turnin lab5.
- One of the team members (lets call him team_member1) has to create the
shared directory in their home directory. They have to make sure that the directory does not exist.
Lets assume the directory is called "cs251-shared".
- Login in lore as team_member_1
- The team_member1's home directory needs to be readable and executable by others
WARNING: Any files with sensitive information that you don't want
to be listed need to be moved to a private directory like ~/private with
protections so only you can read and list its contents.
To make the home directory readable and executable by others type:
$chmod 755 /homes/team_member1/
Note: The permissionsis will allow only listing the entries in
the home directory but the files in there will still be protected.
- Make sure that /homes/team_member1/cs251-shared does not exist.
Remove it if it exists using "rm -rf cs251-shared"
- Create the shared directory. Type:
$mkdir-shared /homes/team_member1/cs251-shared +team_member1 +team_member2
where team_member2 is the other team member
- Point CVS to the shared directory. Type:
$cvs -d '/homes/team_member1/cs251-shared' init
- Both team_member1 and team_member2 may set the CVSROOT environment
var to /homes/team_member1/cs251-shared. Modify the .login file to set
it permanently.
Add to .login:
setenv CVSROOT /homes/team_member1/cs251-shared
Enjoy!