[BACK]Return to ident.1 CVS log [TXT][DIR] Up to [local] / src / usr.bin / rcs

Annotation of src/usr.bin/rcs/ident.1, Revision 1.11

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