
812
|
Chapter 13: The Concurrent Versions System (CVS)
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
Environment Variables in CVSROOT Files
Three environment variables are set when CVS runs commands or scripts from
CVS administrative files:
CVS_USER
This variable is meaningful only with the pserver access method. It refers to
the CVS username provided in the leftmost field of the appropriate line in
CVSROOT/passwd. If this username does not exist, the variable expands to
an empty string.
LOGNAME, USER
Both of these variables contain the username of the user calling the CVS process.
In the pserver access method, the username is the third field of the line in
passwd. If no username is there, the CVS_USER value is used.
Internal Variables in CVSROOT Files
The syntax for referencing a CVS internal variable is ${VARIABLE}. The $VARI-
ABLE syntax can also be used if the character immediately following the variable
is neither alphanumeric nor an underscore (_).
These are the internal CVS variables:
CVSROOT
The path to the repository root directory (not the path to the CVSROOT
directory within the repository). This variable contains the path only, not any
access method or host information.
CVSEDITOR, EDITOR, VISUAL
The editor CVS is using. If you use the -e editor CVS option, CVS uses the
editor you specify on the command line. If you don’t use