Annotation of src/usr.bin/rcs/ident.1, Revision 1.3
1.3 ! xsa 1: .\" $OpenBSD: ident.1,v 1.2 2005/10/19 16:15:36 xsa Exp $
1.1 xsa 2: .\"
3: .\" Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org>
4: .\" All rights reserved.
5: .\"
6: .\" Permission to use, copy, modify, and distribute this software for any
7: .\" purpose with or without fee is hereby granted, provided that the above
8: .\" copyright notice and this permission notice appear in all copies.
9: .\"
10: .\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11: .\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12: .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13: .\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14: .\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15: .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16: .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17: .Dd October 06, 2005
18: .Dt IDENT 1
19: .Os
20: .Sh NAME
21: .Nm ident
22: .Nd identify RCS keyword strings in files
23: .Sh SYNOPSIS
24: .Nm
25: .Op Fl qV
26: .Op Ar file ...
27: .Sh DESCRIPTION
28: The
29: .Nm
30: program searches for the pattern $keyword:...$ from the
31: .Ar file
32: specified as argument.
33: See the
34: .Sx KEYWORD SUBSTITUTION
35: section of
36: .Xr cvs 1
37: for more information.
38: .Pp
39: The following options are supported:
40: .Bl -tag -width "XXX"
41: .It Fl q
42: Quiet mode, suppress warnings if no pattern found.
43: .It Fl V
44: Display version information and exit.
45: .El
1.3 ! xsa 46: .Sh EXAMPLES
! 47: Given the following source code in file
! 48: .Pa foo.c :
! 49: .Bd -literal -offset indent
! 50: #include <stdio.h>
! 51:
! 52: static char const rcsid[] =
! 53: "$\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $";
! 54:
! 55: int
! 56: main(void) {
! 57: printf("%s\en", rcsid);
! 58: return (0);
! 59: }
! 60: .Ed
! 61: .Pp
! 62: Compile it and run
! 63: .Nm :
! 64: .Bd -literal -offset indent
! 65: $ ident foo.c foo.o
! 66: foo.c:
! 67: $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $
! 68: foo.o:
! 69: $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $
! 70: .Ed
1.1 xsa 71: .Sh SEE ALSO
72: .Xr ci 1 ,
73: .Xr co 1 ,
74: .Xr cvs 1 ,
75: .Xr rcs 1 ,
76: .Xr rcsclean 1 ,
77: .Xr rcsdiff 1 ,
1.2 xsa 78: .Xr rcsmerge 1 ,
1.1 xsa 79: .Xr rlog 1