xref: /openbsd-src/usr.bin/rcs/ident.1 (revision 4c1e55dc91edd6e69ccc60ce855900fbc12cf34f)
1.\"	$OpenBSD: ident.1,v 1.11 2011/04/19 21:17:30 jmc Exp $
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 $Mdocdate: April 19 2011 $
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
27.Sh DESCRIPTION
28The
29.Nm
30program searches for the pattern $keyword:... $ from the
31.Ar files
32specified as argument (or standard input if none are given).
33See the
34.Sx KEYWORD SUBSTITUTION
35section of
36.Xr rcs 1
37for more information.
38.Pp
39The following options are supported:
40.Bl -tag -width "XXX"
41.It Fl q
42Quiet mode: suppress warnings if no pattern found.
43.It Fl V
44Display version information and exit.
45.El
46.Sh EXIT STATUS
47.Ex -std ident
48.Sh EXAMPLES
49Given the following source code in file
50.Pa foo.c :
51.Bd -literal -offset indent
52#include \*(Ltstdio.h\*(Gt
53
54static char const rcsid[] =
55	"$\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $";
56
57int
58main(void) {
59	printf("%s\en", rcsid);
60	return (0);
61}
62.Ed
63.Pp
64Compile it and run
65.Nm :
66.Bd -literal -offset indent
67$ ident foo.c foo.o
68foo.c:
69     $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $
70foo.o:
71     $\&Id: foo.c,v 1.2 2005/11/18 09:34:51 xsa Exp $
72.Ed
73.Sh SEE ALSO
74.Xr ci 1 ,
75.Xr co 1 ,
76.Xr cvs 1 ,
77.Xr rcs 1 ,
78.Xr rcsclean 1 ,
79.Xr rcsdiff 1 ,
80.Xr rcsmerge 1 ,
81.Xr rlog 1
82