Using Emacs with CVS197
dated 4/15/2000 and is available at ftp://rum.cs.yale.edu/pub/monnier/pcl-cvs/pcl-cvs-
2.9.9.tar.gz You will also need to retrieve the
elib
library found at ftp://ftp.lysator.liu.se/pub/
emacs/elib-1.0.tar.gz.
6.6.1Installing pcl-cvs
The
elib
library must be installed first. To do this, unpack the tarball:
# tar xvzf elib-1.0.tar.gz
Change directories into the newly created file and edit the Makefile to reflect the RedHat
environment. Changes need to be made to two lines in the Makefile under RedHat 7.2. Other
versions of Linux may or may not require any changes. The original lines and the correction are
given below:
Original:
prefix = /usr/local
infodir = $(prefix)/info
Edited:
prefix = /usr
infodir = $(prefix)/share/info
Once these changes are made, you may compile the
elib
library by issuing the following
commands as root:
# make
# make install
Once you have installed the
elib
library, you may install the
pcl-cvs
application the
exact same way, by making the above changes to the Makefile and then compiling with
make
.
6.6.2Using pcl-cvs
Complete documentation for
pcl-cvs
is available with the installed appliations in
.info
and
.tex
formats. It is also available on the World Wide Web at http://www.delo-
rie.com/gnu/docs/cvs/pcl-cvs_toc.html.
While you will still have to check out the project from the command line,
pcl-cvs
pro-
vides you with the ability to compare files, commit changes and perform many other CVS func-
tions from within Emacs.
If you are unfamiliar with Emacs, please refer to Chapter 2 for more detailed information
about working with this editor.
As an introduction to working the CVS through Emacs, change into a CVS project directory
and start Emacs. Make sure that you have the
CVSROOT
environment variable set up properly.
To begin with, let’s get the status on our current project. Type in
M-x cvs-status
and
press enter to accept the directory information that Emacs presents. After checking with CVS,
Emacs should display something similar to Figure 6-6.
Next Page >>
<< Previous Page
Back to the Table of Contents