< Day Day Up > |
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. 14.7.1. Environment Variables in CVSROOT FilesThree environment variables are set when CVS runs commands or scripts from CVS administrative files:
14.7.2. Internal Variables in CVSROOT FilesThe 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:
CVS permits user-defined variables that can be passed to administrative files from the client. In the administrative files, reference such a variable with the syntax ${=VARIABLE}. On the command line, use the -s variable=value CVS option to pass the variable to CVS. All strings that contain the $ symbol, other than the variable references, are reserved for CVS internal use. There is no way to escape the $ symbol. 14.7.3. Shell Variables in CVSROOT FilesTwo shell variables are also used in the administrative files:
|
< Day Day Up > |