Name
rcsclean
Synopsis
rcsclean [options] [files]Compare 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, -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.
- -T
Preserve the modification time of the RCS file even if a lock is added or removed.
- -u[R]
Unlock the revision if it’s the same as the working file.
Examples
Remove unchanged copies of program and header files:
rcsclean *.c *.hBecome 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