
806
|
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.
TMPDIR
Sets the temporary directory CVS stores data in. This variable defaults to /tmp.
CVS creates temporary files with mkstemp (BSD 4.3), if possible. If mkstemp
is not available when CVS is compiled, it tries tempnam (SVID 3), mktemp
(BSD 4.3), or tmpnam (POSIX), in that order. If it uses tmpnam, it cannot
use the TMPDIR environment variable, and files are created in /tmp.
Keywords and Keyword Modes
CVS contains keywords that can be included in nonbinary project files. When
CVS finds a keyword in a file it is checking out, it expands the keyword to provide
metadata about the latest revision of the file. You can set keyword-expansion
modes on a file to tell CVS whether (and how) to expand the keywords it finds.
Keyword-expansion modes also control line-ending conversion. Unix, Macintosh,
and Windows operating systems use different sets of codes to signal the ends of
lines. (GNU/Linux uses the same codes as Unix.) When you commit a file from
an operating system that doesn’t use Unix line endings, CVS converts the line
endings to Unix style. If you are storing binary files, this conversion can corrupt
the file. Use the -kb keyword-expansion mode to tell CVS not to convert line
endings.
CVS keywords take the form:
$Keyword$
All keywords ...