1 .\" $NetBSD: rcsclean.1,v 1.4 1996/10/15 07:00:37 veego Exp $
7 .\" Id: rcsclean.1,v 1.12 1993/11/03 17:42:27 eggert Exp
11 .TH RCSCLEAN 1 \*(Dt GNU
13 rcsclean \- clean up working files
16 .RI [ options "] [ " file " .\|.\|. ]"
19 removes files that are not being worked on.
21 also unlocks and removes files that are being worked on
28 compares the working file and a revision in the corresponding
29 \*r file. If it finds a difference, it does nothing.
30 Otherwise, it first unlocks the revision if the
33 and then removes the working file
34 unless the working file is writable and the revision is locked.
35 It logs its actions by outputting the corresponding
39 commands on the standard output.
41 Files are paired as explained in
45 is given, all working files in the current directory are cleaned.
46 Pathnames matching an \*r suffix denote \*r files;
47 all others denote working files.
49 The number of the revision to which the working file is compared
50 may be attached to any of the options
56 If no revision number is specified, then if the
58 option is given and the caller has one revision locked,
60 uses that revision; otherwise
62 uses the latest revision on the default branch, normally the root.
70 which prints out the differences,
74 normally reverts to the previous revision
75 if a file was not changed.
81 style keyword substitution when retrieving the revision for comparison.
87 Do not actually remove any files or unlock any revisions.
88 Using this option will tell you what
90 would do without actually doing it.
93 Do not log the actions taken on standard output.
96 This option has no effect other than specifying the revision for comparison.
99 Preserve the modification time on the \*r file
100 even if the \*r file changes because a lock is removed.
101 This option can suppress extensive recompilation caused by a
103 dependency of some other copy of the working file on the \*r file.
104 Use this option with care; it can suppress recompilation even when it is needed,
105 i.e. when the lock removal
106 would mean a change to keyword strings in the other working file.
109 Unlock the revision if it is locked and no difference is found.
112 Print \*r's version number.
124 to characterize \*r files.
132 as the time zone for keyword substitution;
144 removes all working files ending in
148 that were not changed
149 since their checkout.
157 removes all working files in the current directory
158 that were not changed since their checkout.
161 accesses files much as
167 options prepended to the argument list, separated by spaces.
168 A backslash escapes spaces within an option.
171 options are prepended to the argument lists of most \*r commands.
181 The exit status is zero if and only if all operations were successful.
182 Missing working files and \*r files are silently ignored.
184 Author: Walter F. Tichy.
186 Manual Page Revision: \*(Rv; Release Date: \*(Dt.
188 Copyright \(co 1982, 1988, 1989 Walter F. Tichy.
190 Copyright \(co 1990, 1991, 1992, 1993 Paul Eggert.
192 ci(1), co(1), ident(1), rcs(1), rcsdiff(1), rcsintro(1), rcsmerge(1), rlog(1),
196 \*r\*-A System for Version Control,
197 .I "Software\*-Practice \*[Am] Experience"
199 7 (July 1985), 637-654.
203 must be given in older Unix versions that
204 do not provide the needed directory scanning operations.