
cvs diff driver.c (This command runs diff to compare the version of
`driver.c' that you checked out with your working copy)
cvs commit -m "Added an optimization pass" backend.c (If you want to avoid starting an editor you can specify the log message on the command line using the `-m' flag instead)
If the files you want to install in CVS reside in `wdir', and you want them to appear in the repository as `$CVSROOT/yoyodyne/rdir', you can do this:
$ cd wdir
$ cvs import -m "Imported sources" yoyodyne/rdir yoyo start
NAME
cvs - Concurrent Versions System
SYNOPSIS
cvs [ cvs_options ]
cvs_command [ command_options ] [ command_args ]
cvs checkout modules...
A necessary preliminary for most cvs work: creates your private
copy of the source for modules (named collections of source; you
can also use a path relative to the source repository here).
You can work with this copy without interfering with others'
work. At least one subdirectory level is always created.
cvs update
Execute this command from within your private source directory
when you wish to update your copies of source files from changes
that other developers have made to the source in the repository.
cvs add file...
Use this command to enroll new files in cvs records of your
working directory. The files will be added to the repository
the next time you run `cvs commit'. Note: You should use the
`cvs import' command to bootstrap new sources into the source
repository. `cvs add' is only used for new files to an already
checked-out module.
cvs remove file...
Use this command (after erasing any files listed) to declare
that you wish to eliminate files from the repository. The
removal does not affect others until you run `cvs commit'.
cvs commit file...
Use this command when you wish to ``publish'' your changes to
other developers, by incorporating them in the source reposi-
tory.
------------------------------------------------------------------
Creating a directory tree from a number of files:
$ cd wdir
$ cvs import -m "Imported sources" yoyodyne/rdir yoyo start
(the string `yoyo' is a vendor tag, and `start' is a release tag.)
3.1.3 Creating a directory tree from scratch
For a new project, the easiest thing to do is probably to create an empty directory structure, like this:
$ mkdir tc
$ mkdir tc/man
$ mkdir tc/testing
After that, you use the import command to create the corresponding (empty) directory structure inside the repository:
$ cd tc
$ cvs import -m "Created directory structure" yoyodyne/dir yoyo start
This will add yoyodyne/dir as a directory under $CVSROOT.
Use checkout to get the new project. Then, use add to add files (and new directories) as needed.
$ cd ..
$ cvs co yoyodyne/dir
Check that the permissions CVS sets on the directories inside $CVSROOT
are reasonable.