home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rcstxi11.zip / rcstexi.110 / rcsclean.tex < prev    next >
Text File  |  1997-03-30  |  13KB  |  355 lines

  1. @c
  2. @c ================================================================================
  3. @c                               Edition 1.1
  4. @c                      of the Texinfo-manuals for the
  5. @c                      (R)evision (C)ontrol (S)ystem
  6. @c                               Version 5.7
  7. @c
  8. @c                  (c) 1982, 1988, 1989 Walter F. Tichy.
  9. @c           (c) 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
  10. @c        (c) 1996, 1997 Karl Heinz Marbaise (doing converting job)
  11. @c ================================================================================
  12. @c
  13. @c Discription:
  14. @c    clean working files.
  15. @c
  16. @c Authors:
  17. @c    Walter Tichy,
  18. @c    Paul Eggert,
  19. @c    Karl Heinz Marbaise (doing converting job)
  20. @c
  21. @c e-mail:
  22. @c    Internet: KHMarbaise@p69.ks.fido.de
  23. @c    Fido-net: 2:2452/117.69
  24. @c
  25. @c Bugs, question:
  26. @c    to above e-mail adress.
  27. @c
  28. @c License:
  29. @c    The "Texinfo Edition of the RCS V5.7 manuals" are free
  30. @c    software; you can redistribute it and/or modify it under
  31. @c    the terms of the GNU General Public License as published
  32. @c    by the Free Software Foundation; either version 2, or (at
  33. @c    your option) any later version.
  34. @c
  35. @c    The "Texinfo Edition of the RCS V5.7 manuals" are distributed
  36. @c    in the hope that they will be useful, but WITHOUT ANY WARRANTY;
  37. @c    without even the implied warranty of MERCHANTABILITY or
  38. @c    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
  39. @c    License for more details.
  40. @c
  41. @c    You should have received a copy of the GNU General Public License
  42. @c    along with the "Texinfo Edition of the RCS V5.7 manuals"; see the
  43. @c    file COPYING. If not, write to the:
  44. @c    Free Software Foundation,
  45. @c    59 Temple Place - Suite 330,
  46. @c    Boston, MA 02111-1307, USA.
  47. @c
  48. @c    See \rcstxi.110\COPYING for details.
  49. @c
  50. @c ================================================================================
  51. @c
  52. @c
  53. @c $Id: RCSCLEAN.TEX 1.2 1997/03/30 22:53:15 KHM Exp $
  54. @c
  55. @c =============================================================================
  56. @c rcsclean -- clean up working files
  57. @c -----------------------------------------------------------------------------
  58. @node rcsclean,rcsdiff,ident,Top
  59. @chapter rcsclean -- clean up working files
  60. @cindex rcsclean
  61. @cindex clean up
  62. @cindex working files
  63. @menu
  64. * rcscleanIntro::       Introduction to @code{rcsclean}.
  65.  
  66. * rcscleanOptions::     command line options of @code{rcsclean}.
  67. * rcscleanExamples::    Examples in using @code{rcsclean}.
  68. * rcscleanFiles::       Files.
  69. * rcscleanEnv::         The Environment which can change the
  70.                         behaviour of much of the RCS commands.
  71. * rcscleanDiag::        Diagnostic output of @code{rcsclean}.
  72. * rcscleanBugs::        Bugs.
  73. @end menu
  74. @c =============================================================================
  75. @c rcsclean -- clean up working files
  76. @c     Description
  77. @c -----------------------------------------------------------------------------
  78. @node rcscleanIntro,rcscleanOptions,,rcsclean
  79. @section Description
  80. @code{rcsclean}  removes  files  that  are  not  being worked on.
  81. @code{rcsclean -u} (@ref{rcscleanOptu}) also unlocks and removes
  82. files that are  being worked on but have not changed.
  83.  
  84. For  each  @file{file} given, rcsclean compares the working file
  85. and a revision in the corresponding RCS file.  If it finds
  86. a  difference,  it  does  nothing.   Otherwise,  it  first
  87. unlocks the revision if the @code{-u} (@xref{rcscleanOptu}
  88.  option is given,  and  then
  89. removes  the  working  file  unless  the  working  file is
  90. writable and the revision is locked.  It logs its  actions
  91. by  outputting the corresponding @code{rcs -u} (@xref{rcsOptu})
  92. and @code{rm -f} commands on the standard output.
  93.  
  94. Files are paired as explained in @ref{ciFiles}.
  95. If  no  @file{file} is
  96. given,  all  working  files  in  the current directory are
  97. cleaned.  Pathnames matching  an  RCS  suffix  denote  RCS
  98. files; all others denote working files.
  99.  
  100. The  number  of  the revision to which the working file is
  101. compared may be attached to any of the options @code{-n},
  102. @code{-q}, @code{-r}, or @code{-u}.
  103. If no revision number is specified, then if the @code{-u}
  104. option is given and the caller has  one  revision  locked,
  105. rcsclean  uses  that revision; otherwise rcsclean uses the
  106. latest revision on the default branch, normally the  root.
  107.  
  108. @code{rcsclean} is  useful  for clean targets in makefiles.
  109. @xref{rcsdiff}, which prints  out  the  differences,  and
  110. @code{ci} (@ref{ciIntro}),  which normally reverts to the
  111. previous revision if a file was not changed.
  112.  
  113.  
  114. @c =============================================================================
  115. @c rcsclean -- clean up working files
  116. @c     Options
  117. @c -----------------------------------------------------------------------------
  118. @node rcscleanOptions,rcscleanExamples,rcscleanIntro,rcsclean
  119. @section Command line options of rcsclean
  120. @ifinfo
  121. Overview off all options which can be given to @code{rcsclean}
  122.  
  123. @code{Synopsis}: rcsclean [options] [ file @dots{} ]
  124. @end ifinfo
  125. @menu
  126. * rcscleanOptk::   -k Keyword substitution.
  127. * rcscleanOptn::   -n Do not unlock or remove.
  128. * rcscleanOptq::   -q Quiet mode.
  129. * rcscleanOptr::   -r Revision for comparison.
  130. * rcscleanOptT::   -T Modification time.
  131. * rcscleanOptu::   -u unlock revisions.
  132. * rcscleanOptV::   -V Version; Emulation RCS Version.
  133. * rcscleanOptx::   -x Suffixes.
  134. * rcscleanOptz::   -z Time zone.
  135. @end menu
  136. @c =============================================================================
  137. @c rcsclean -- clean up working files
  138. @c     Options
  139. @c         option -k
  140. @c -----------------------------------------------------------------------------
  141. @node rcscleanOptk,rcscleanOptn,,rcscleanOptions
  142. @subsection Keyword substitution
  143. @cindex -k
  144. @cindex Keyword
  145. @table @code
  146. @item -k@file{subst}
  147.  
  148. Use @file{subst} style keyword substitution when  retrieving
  149. the  revision  for  comparison.  See @ref{coKeyword}
  150. for details.
  151.  
  152. @end table
  153. @c =============================================================================
  154. @c rcsclean -- clean up working files
  155. @c     Options
  156. @c         option -n
  157. @c -----------------------------------------------------------------------------
  158. @node rcscleanOptn,rcscleanOptq,rcscleanOptk,rcscleanOptions
  159. @subsection No removing
  160. @cindex -n
  161. @cindex remove
  162. @cindex unlock
  163. @table @code
  164. @item -n@file{rev}
  165.  
  166. Do not actually remove  any  files  or  unlock  any
  167. revisions.   Using  this  option will tell you what
  168. @code{rcsclean} would do without actually doing it.
  169. @end table
  170. @c =============================================================================
  171. @c rcsclean -- clean up working files
  172. @c     Options
  173. @c         option -q
  174. @c -----------------------------------------------------------------------------
  175. @node rcscleanOptq,rcscleanOptr,rcscleanOptn,rcscleanOptions
  176. @subsection Quiet mode
  177. @cindex -q
  178. @cindex Quiet
  179. @table @code
  180. @item -q@file{rev}
  181.  
  182. Do not log the actions taken on standard output.
  183. @end table
  184. @c =============================================================================
  185. @c rcsclean -- clean up working files
  186. @c     Options
  187. @c         option -r
  188. @c -----------------------------------------------------------------------------
  189. @node rcscleanOptr,rcscleanOptT,rcscleanOptq,rcscleanOptions
  190. @subsection Revision for comparison
  191. @cindex -r
  192. @cindex Revision
  193. @cindex comparison
  194. @table @code
  195. @item -r@file{rev}
  196.  
  197. This option has no effect other than specifying the
  198. revision for comparison.
  199.  
  200. @end table
  201. @c =============================================================================
  202. @c rcsclean -- clean up working files
  203. @c     Options
  204. @c         option -T
  205. @c -----------------------------------------------------------------------------
  206. @node rcscleanOptT,rcscleanOptu,rcscleanOptr,rcscleanOptions
  207. @subsection Modification time
  208. @cindex -T
  209. @cindex Modification
  210. @cindex time/date
  211. @table @code
  212. @item -T
  213.  
  214. Preserve the modification time on the RCS file even
  215. if the RCS file changes because a lock is  removed.
  216. This  option  can  suppress extensive recompilation
  217. caused by a @code{make} dependency of some  other  copy
  218. of  the  working  file  on  the RCS file.  Use this
  219. option with care;  it  can  suppress  recompilation
  220. even  when it is needed, i.e. when the lock removal
  221. would mean a change to keyword strings in the other
  222. working file.
  223.  
  224. @end table
  225. @c =============================================================================
  226. @c rcsclean -- clean up working files
  227. @c     Options
  228. @c         option -u
  229. @c -----------------------------------------------------------------------------
  230. @node rcscleanOptu,rcscleanOptV,rcscleanOptT,rcscleanOptions
  231. @subsection Unlock revision
  232. @cindex -u
  233. @cindex Unlock revision
  234. @table @code
  235. @item -u@file{rev}
  236.  
  237. Unlock  the revision if it is locked and no difference is found.
  238.  
  239. @end table
  240. @c =============================================================================
  241. @c rcsclean -- clean up working files
  242. @c     Options
  243. @c         option -V
  244. @c -----------------------------------------------------------------------------
  245. @node rcscleanOptV,rcscleanOptx,rcscleanOptu,rcscleanOptions
  246. @subsection Version and Emulation
  247. @cindex -V
  248. @cindex RCS Version
  249. @cindex Emulation of RCS Version
  250. @table @code
  251. @item -V
  252.  
  253. Print RCS's version number.
  254.  
  255. @item -V@file{n}
  256.  
  257. Emulate RCS version @file{n}.  @xref{coOptV} for details.
  258. @end table
  259. @c =============================================================================
  260. @c rcsclean -- clean up working files
  261. @c     Options
  262. @c         option -x
  263. @c -----------------------------------------------------------------------------
  264. @node rcscleanOptx,rcscleanOptz,rcscleanOptV,rcscleanOptions
  265. @subsection Suffixes
  266. @cindex -x
  267. @cindex Suffixes
  268. @table @code
  269. @item -x@file{suffixes}
  270.  
  271. Use @file{suffixes} to characterize RCS files.  See  @ref{ciOptx}
  272. for details.
  273. @end table
  274. @c =============================================================================
  275. @c rcsclean -- clean up working files
  276. @c     Options
  277. @c         option -t
  278. @c -----------------------------------------------------------------------------
  279. @node rcscleanOptz,,rcscleanOptx,rcscleanOptions
  280. @subsection Time zone
  281. @cindex -z
  282. @cindex Time zone
  283. @table @code
  284. @item -z@file{zone}
  285.  
  286. @code{-z@file{zone}} Use @file{zone} as the time zone for keyword substitution;
  287. see @ref{coOptz} for details.
  288. @end table
  289.  
  290. @c =============================================================================
  291. @c rcsclean -- clean up working files
  292. @c     Examples
  293. @c -----------------------------------------------------------------------------
  294. @node rcscleanExamples,rcscleanFiles,rcscleanOptions,rcsclean
  295. @section Examples
  296. @cindex Examples
  297.  
  298. @example
  299. rcsclean  *.c  *.h
  300. @end example
  301.  
  302.  
  303. removes all working files ending in .c or .h that were not
  304. changed since their checkout.
  305.  
  306.  
  307. @example
  308. rcsclean
  309. @end example
  310.  
  311.  
  312. removes  all  working  files in the current directory that
  313. were not changed since their checkout.
  314.  
  315. @c =============================================================================
  316. @c rcsclean -- clean up working files
  317. @c     Files
  318. @c -----------------------------------------------------------------------------
  319. @node rcscleanFiles,rcscleanEnv,rcscleanExamples,rcsclean
  320. @section Files
  321. @cindex Files
  322. rcsclean accesses files much as @code{ci} (@ref{ciFiles})does.
  323.  
  324. @c =============================================================================
  325. @c rcsclean -- clean up working files
  326. @c     Envrionment
  327. @c -----------------------------------------------------------------------------
  328. @node rcscleanEnv,rcscleanDiag,rcscleanFiles,rcsclean
  329. @section Environment
  330. @cindex Environment
  331. @table @code
  332. @item RCSINIT
  333. options prepended to the argument list, separated by spaces.
  334. See @ref{ciEnv} for details.
  335.  
  336. @end table
  337. @c =============================================================================
  338. @c rcsclean -- clean up working files
  339. @c     Diagnostics
  340. @c -----------------------------------------------------------------------------
  341. @node rcscleanDiag,rcscleanBugs,rcscleanEnv,rcsclean
  342. @section Diagnostics
  343. The exit status is zero if and only if all operations were
  344. successful.   Missing  working  files  and  RCS  files are
  345. silently ignored.
  346. @c =============================================================================
  347. @c rcsclean -- clean up working files
  348. @c     Bugs
  349. @c -----------------------------------------------------------------------------
  350. @node rcscleanBugs,,rcscleanDiag,rcsclean
  351. @section Bugs
  352. At  least  one  @file{file} must be given in older Unix versions
  353. that do not provide the needed directory  scanning  operations.
  354.  
  355.