The initial setup only needs to be done once. Although I have already gone through most of this setup, I am including the following instructions in this page for future reference.
supermix.
All programmers who
need write access to the library must be a member of the group.
cvsroot
directory with write permission for group supermix.
cvs -d /home/moria/supermix/cvsroot init
setenv CVSROOT /home/moria/supermix/cvsroot
cvs import -m "Supermix microwave simulator" supermix caltech start
This assumes that the original source code was in the directory called "supermix," and gives the initial version a tag called "start."
cvsignore in the
directory cvsroot/CVSROOT if desired to tell cvs to ignore
certain file names or patterns.
The following brief instructions are to get programmers started who have never used CVS.
cvs checkout supermix
cvs update supermix
I recommend running this command once for each day that you work on the library, before modifying any source code.
emacs nport.cc
When done, after making sure that the changes compile and don't introduce any bugs, commit with the command
cvs commit nport.cc
new.h.
When it is ready to add to the repository, issue the commands
cvs add new.h cvs commit new.h
rm uselessfile.cc cvs remove uselessfile.cc cvs commit
mv oldname.cc newname.cc cvs remove oldname.cc cvs commit cvs add newname.cc cvs commit newname.cc
cvsroot/CVSROOT/cvsignore. Note that many common file patterns,
such as *~, *.bak, *.o, and
*.a are already ignored by default.
cvs release [-d] supermixNote that the optional -d flag will delete the copy of the source tree in your home directory. Beware that when you release your source tree, you abandon any changes that haven't been committed.
To create a release version, you must first tag the current version. When you are certain that everything is correct, go to the directory where the distribution is located and type
cvs tag release-1-0 supermixto tag the current version as release 1.0. Then, any time you want a copy release 1.0 for distribution, type
cvs export -r release-1-0 supermixThis will extract a clean copy of version 1.0 without any CVS working directories. This copy would be ready to tar, gzip, and distribute. You can also checkout and editable version using
cvs checkout -r release-1-0 supermixThe export the current snapshot, try
cvs export -D now supermix
If you prefer to use a graphical interface, try out tkcvs.
Last updated Tuesday, 15-May-2001 15:28:22 PDT