Just for fun we will put the Zoo program into a repository.
mkdir <some_scratch_directory> cd <some_scratch_directory> mkdir Repository setenv CVSROOT <some_scratch_directory>/Repository cvs init
CVS looks for the environmental variable CVSROOT
that defines
the location of the Repository. The init command is used to
prime the Repository directory structure.
mkdir source cd source cp ~west/ttp/manual/unix_programming/cpp/*.c* ./ cvs import Zoo V0 R0-0
The last command tells CVS to import everything in the current directory into the Zoo directory in the Repository. It gives it an external version V0 and an internal version R0-0. CVS puts you into an editor (vi by default or whatever your EDITOR environmental variable is set to) and you have to enter some suitable comment, for example
Initial commit
cd ../ mkdir work cd work cvs checkout Zoo
You should see CVS checkout the code into the Zoo directory within your work directory.
vi Zoo/GNUmakefile .. add some comment. cvs commit
Now CVS will ask for a comment and commit your change as revision 1.2 (initially all revisions are called 1.1).
cvs log Zoo/GNUmakefile
and get back a complete history of this file along with all the commit comments.