Name

rcsclean

Synopsis

rcsclean [options] [files]

Although included with RCS, this command is optional and might not be installed on your system. rcsclean compares checked-out files against the corresponding latest revision or revision R (as given by the options). If no differences are found, the working file is removed. (Use rcsdiff to find differences.) rcsclean is useful in makefiles; for example, you could specify a “clean-up” target to update your directories. rcsclean is also useful prior to running rcsfreeze. rcsclean accepts the standard options -q, -V, -V n, -T, -x, and -z.

Options

-k c

When comparing revisions, expand keywords using style c. (See co for values of c.)

-n[ R ]

Show what would happen but don’t actually execute.

-r[ R ]

Compare against revision R. R can be supplied as arguments to other options, so -r is redundant.

-u[ R ]

Unlock the revision if it’s the same as the working file.

Example

Remove unchanged copies of program and header files:

    rcsclean *.c *.h

Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.