CVSROOT Variables
The
administrative files in CVSROOT can use several
types of variables: internal, environment, and shell variables. You
can use these variables to pass parameters to the scripts in the
scripting files, or you can use them as part of command-line
templates.
The internal variables allow you to use information CVS stores about the currently running command. The environment variables are used to access information from the environment the command is running in, and the shell variables are used to access information about the shell.
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
pserveraccess method. It refers to the CVS username provided in the leftmost field of the appropriate line inCVSROOT/passwd. If this username does not exist, the variable expands to an empty string.-
LOGNAMEandUSER Both of these variables contain the username of the user calling the CVS process.
In the
pserveraccess method, the username is the third field of the line inpasswd. If no username is there, theCVS_USERvalue is used.
Internal Variables in CVSROOT Files
The syntax for referencing a CVS
internal variable is ${VARIABLE}. The
$VARIABLE 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access