home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 22 gnu
/
22-gnu.zip
/
rcs567x.zip
/
doc
/
ident.man
< prev
next >
Wrap
Text File
|
1994-03-22
|
6KB
|
199 lines
IDENT(1) IDENT(1)
NNAAMMEE
ident - identify RCS keyword strings in files
SSYYNNOOPPSSIISS
iiddeenntt [ --qq ] [ --VV ] [ _f_i_l_e ... ]
DDEESSCCRRIIPPTTIIOONN
iiddeenntt searches for all instances of the pattern
$$_k_e_y_w_o_r_d:: _t_e_x_t $$ in the named files or, if no files are
named, the standard input.
These patterns are normally inserted automatically by the
RCS command ccoo(1), but can also be inserted manually. The
option --qq suppresses the warning given if there are no
patterns in a file. The option --VV prints iiddeenntt's version
number.
iiddeenntt works on text files as well as object files and
dumps. For example, if the C program in ff..cc contains
##iinncclluuddee <<ssttddiioo..hh>>
ssttaattiicc cchhaarr ccoonnsstt rrccssiidd[[]] ==
""$$IIdd:: ff..cc,,vv 55..44 11999933//1111//0099 1177::4400::1155 eeggggeerrtt EExxpp
$$"";;
iinntt mmaaiinn(()) {{ rreettuurrnn pprriinnttff((""%%ss\\nn"",, rrccssiidd)) ==== EEOOFF;; }}
and ff..cc is compiled into ff..oo, then the command
iiddeenntt ff..cc ff..oo
will output
ff..cc::
$$IIdd:: ff..cc,,vv 55..44 11999933//1111//0099 1177::4400::1155 eeggggeerrtt EExxpp $$
ff..oo::
$$IIdd:: ff..cc,,vv 55..44 11999933//1111//0099 1177::4400::1155 eeggggeerrtt EExxpp $$
If a C program defines a string like rrccssiidd above but does
not use it, lliinntt(1) may complain, and some C compilers
will optimize away the string. The most reliable solution
is to have the program use the rrccssiidd string, as shown in
the example above.
iiddeenntt finds all instances of the $$_k_e_y_w_o_r_d:: _t_e_x_t $$ pattern,
even if _k_e_y_w_o_r_d is not actually an RCS-supported keyword.
This gives you information about nonstandard keywords like
$$XXCCoonnssoorrttiiuumm$$.
KKEEYYWWOORRDDSS
Here is the list of keywords currently maintained by
ccoo(1). All times are given in Coordinated Universal Time
(UTC, sometimes called GMT) by default, but if the files
were checked out with ccoo's --zz_z_o_n_e option, times are given
with a numeric time zone indication appended.
GNU 1993/11/09 1
IDENT(1) IDENT(1)
$$AAuutthhoorr$$
The login name of the user who checked in the revi-
sion.
$$DDaattee$$ The date and time the revision was checked in.
$$HHeeaaddeerr$$
A standard header containing the full pathname of
the RCS file, the revision number, the date and
time, the author, the state, and the locker (if
locked).
$$IIdd$$ Same as $$HHeeaaddeerr$$, except that the RCS filename is
without a path.
$$LLoocckkeerr$$
The login name of the user who locked the revision
(empty if not locked).
$$LLoogg$$ The log message supplied during checkin. For
iiddeenntt's purposes, this is equivalent to $$RRCCSSffiillee$$.
$$NNaammee$$ The symbolic name used to check out the revision,
if any.
$$RRCCSSffiillee$$
The name of the RCS file without a path.
$$RReevviissiioonn$$
The revision number assigned to the revision.
$$SSoouurrccee$$
The full pathname of the RCS file.
$$SSttaattee$$
The state assigned to the revision with the --ss
option of rrccss(1) or ccii(1).
ccoo(1) represents the following characters in keyword val-
ues by escape sequences to keep keyword strings well-
formed.
_c_h_a_r _e_s_c_a_p_e _s_e_q_u_e_n_c_e
tab \\tt
newline \\nn
space \\004400
$$ \\004444
\\ \\\\
IIDDEENNTTIIFFIICCAATTIIOONN
Author: Walter F. Tichy.
Manual Page Revision: 5.4; Release Date: 1993/11/09.
Copyright (C) 1982, 1988, 1989 Walter F. Tichy.
Copyright (C) 1990, 1992, 1993 Paul Eggert.
GNU 1993/11/09 2
IDENT(1) IDENT(1)
SSEEEE AALLSSOO
ci(1), co(1), rcs(1), rcsdiff(1), rcsintro(1),
rcsmerge(1), rlog(1), rcsfile(5)
Walter F. Tichy, RCS--A System for Version Control,
_S_o_f_t_w_a_r_e_-_-_P_r_a_c_t_i_c_e _& _E_x_p_e_r_i_e_n_c_e 1155, 7 (July 1985),
637-654.
GNU 1993/11/09 3