home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / rcstxi11.zip / rcstexi.110 / ident.tex < prev    next >
Text File  |  1997-03-30  |  7KB  |  194 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    identifying versions
  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: IDENT.TEX 1.2 1997/03/30 22:53:12 KHM Exp $
  54. @c
  55. @c =============================================================================
  56. @c ident -- identify RCS keyword strings in files
  57. @c -----------------------------------------------------------------------------
  58. @node ident,rcsclean,rcs,Top
  59. @chapter ident -- identify RCS keywords
  60. @cindex ident
  61. @cindex identify Keywords
  62. @cindex Keywords
  63. @menu
  64. * identIntro::       Introduction to @code{rcs}.
  65.  
  66. * identOptions::     command line options of @code{rcs}.
  67. * identKeywords::    Keywords.
  68. @end menu
  69. @c =============================================================================
  70. @c ident -- identify RCS keyword strings in files
  71. @c     Description
  72. @c -----------------------------------------------------------------------------
  73. @node identIntro,identOptions,,ident
  74. @section Description
  75. Ident   searches   for   all   instances  of  the  pattern
  76. @code{@value{RCSD}keyword: text @value{RCSD}} in the named
  77. files or, if  no  files  are named, the standard input.
  78.  
  79.  
  80. These  patterns are normally inserted automatically by the
  81. RCS command @code{co} (@ref{coKeyword}), but can also
  82. be inserted manually. The option
  83. @code{-q}(@xref{identOptq})  suppresses  the
  84. warning given if there are no patterns in a file.
  85. The option @code{-V}(@xref{identOptV}) prints ident's  version
  86. number.
  87.  
  88. ident  works  on  text  files  as well as object files and
  89. dumps.  For example, if the C program in f.c contains:
  90.  
  91.  
  92. @example
  93. @group
  94. @w{#include <stdio.h>}
  95. @w{static char const rcsid[] =}
  96. @w{    "@value{RCSD}Id: f.c,v 5.4 1993/11/09  17:40:15  eggert  Exp @value{RCSD}";}
  97. @w{int main() @{ return printf("%s\n", rcsid) == EOF; @}}
  98. @end group
  99. @end example
  100.  
  101.  
  102. and f.c is compiled into f.o, then the command
  103.  
  104.  
  105. @example
  106. ident  f.c  f.o
  107. @end example
  108.  
  109. will output
  110. @example
  111. @group
  112. f.c:
  113.     @value{RCSD}Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp @value{RCSD}
  114. f.o:
  115.     @value{RCSD}Id: f.c,v 5.4 1993/11/09 17:40:15 eggert Exp @value{RCSD}
  116. @end group
  117. @end example
  118.  
  119. If a C program defines a string like rcsid above but  does
  120. not  use  it,  @code{lint}  may complain, and some C compilers
  121. will optimize away the string.  The most reliable solution
  122. is  to  have the program use the rcsid string, as shown in
  123. the example above.
  124.  
  125. ident finds all instances of the @code{@value{RCSD}keyword: text @value{RCSD}}
  126. pattern, even  if @code{keyword} is not actually an RCS-supported keyword.
  127. This gives you information about nonstandard keywords like
  128. @code{@value{RCSD}XConsortium@value{RCSD}}.
  129.  
  130. @c =============================================================================
  131. @c ident -- identify RCS keyword strings in files
  132. @c     Options
  133. @c -----------------------------------------------------------------------------
  134. @node identOptions,identKeywords,identIntro,ident
  135. @section Command line options of ident
  136. @ifinfo
  137. Overview off all options which can be given to @code{rcs}
  138.  
  139. @code{Synopsis}: ident [options] [ file @dots{} ]
  140. @end ifinfo
  141. @menu
  142. * identOptq::        -q Quiet mode.
  143. * identOptV::        -V Version
  144. @end menu
  145. @c =============================================================================
  146. @c ident -- identify RCS keyword strings in files
  147. @c     Options
  148. @c         option-q
  149. @c -----------------------------------------------------------------------------
  150. @node identOptq,identOptV,,identOptions
  151. @subsection Quiet mode
  152. @cindex -q
  153. @cindex Quiete mode
  154. @table @code
  155. @item -q
  156.  
  157. Suppress warning given if there are no patterns in a file.
  158.  
  159. @end table
  160. @c =============================================================================
  161. @c ident -- identify RCS keyword strings in files
  162. @c     Options
  163. @c         option-V
  164. @c -----------------------------------------------------------------------------
  165. @node identOptV,,identOptq,identOptions
  166. @subsection Version
  167. @cindex -V
  168. @cindex Version
  169. @table @code
  170. @item -V
  171.  
  172. Print ident's version number.
  173.  
  174. @end table
  175. @c =============================================================================
  176. @c ident -- identify RCS keyword strings in files
  177. @c     Keywords
  178. @c -----------------------------------------------------------------------------
  179. @node identKeywords,,identOptions,ident
  180. @section Keywords
  181. @cindex Keywords
  182. The maintained list of keywords of @code{co} you'll find
  183. in @ref{coKeyword}.
  184. @*
  185. @*
  186. @c original Text but this is not the right thing.
  187. @c || Here  is  the  list  of  keywords  currently maintained by
  188. @c || @code{co} (@ref{CheckOut}).
  189. All times are given in Coordinated Universal  Time
  190. (UTC,  sometimes  called GMT) by default, but if the files
  191. were checked out with @code{co}'s @code{-z@file{zone}} (@xref{coOptz})
  192. option, times are  given with a numeric time zone indication appended.
  193.  
  194.