1sccs-prs(1)                      User Commands                     sccs-prs(1)
2
3
4

NAME

6       sccs-prs, prs - display selected portions of an SCCS history
7

SYNOPSIS

9       prs [-ael] [-cdate-time] [-ddataspec] [-rsid] s.filename...
10
11

DESCRIPTION

13       The prs utility displays part or all of the SCCS file (see sccsfile(4))
14       in a user supplied format.
15
16
17       If a directory name is used in place of the  s.filename  argument,  the
18       prs  command  applies  to  all  s.files  in  that directory. Unreadable
19       s.files produce an error; processing continues with the next  file  (if
20       any).  The  use  of  `'  as the s.filename argument indicates that the
21       names of files are to be read from the standard input, one  s.file  per
22       line.
23

OPTIONS

25       In  the absence of options, prs displays the delta table (version log).
26       In the absence of -d, or -l, prs displays  the  entry  for  each  delta
27       indicated by the other options.
28
29       -a             Includes  all  deltas, including those marked as removed
30                      (see sccs-rmdel(1)).
31
32
33       -e             Requests information  for  all  deltas  created  earlier
34                      than, and including, the delta indicated with -r or -c.
35
36
37       -l             Requests  information for all deltas created later than,
38                      and including, the delta indicated with -r or -c.
39
40
41       -cdate-time    Either options -eor -lmust be  used  with  this  option.
42                      -cdate-time  displays  information on the deltas checked
43                      in either prior to and including the date and time indi‐
44                      cated  by  the  date-time argument (option -e); or later
45                      than and including the date and time  indicated  (option
46                      -l). date-time takes the form:
47
48                      yy[mm[dd[hh[mm[ss]]]]]
49
50                      Units  omitted  from the indicated date and time default
51                      to their maximum possible  values;  that  is  -c7502  is
52                      equivalent  to -c750228235959. Any number of non-numeric
53                      characters may separate the various 2 digit  components.
54                      If  white-space characters occur, the date-time specifi‐
55                      cation must be quoted. Values of yy in the  range  69−99
56                      refer  to  the twentieth century. Values in the range of
57                      00−68 refer to the twenty-first century.
58
59
60       -ddataspec     Produce a report according to the indicated data  speci‐
61                      fication.  dataspec  consists  of a (quoted) text string
62                      that  includes  embedded  data  keywords  of  the  form:
63                      `:key:'  (see  Data  Keywords, below). prs expands these
64                      keywords in the output it produces.  To  specify  a  TAB
65                      character in the output, use \t; to specify a NEWLINE in
66                      the output, use \n.
67
68
69       -rsid          Specifies the SCCS delta ID (SID) of the delta for which
70                      information  is  desired.  If  no  SID is specified, the
71                      most recently created delta is used.
72
73

USAGE

75       Usage of prs is described below.
76
77   Data Keywords
78       Data keywords specify which parts of an SCCS file are to be  retrieved.
79       All  parts  of  an  SCCS file (see sccsfile(4)) have an associated data
80       keyword. A data keyword may appear any number of times in a data speci‐
81       fication  argument  to  -d. These data keywords are listed in the table
82       below:
83
84
85
86
87
88
89
90
91       Keyword             Data Item             File Section*               Value                Format**
92       :A:       a format for the what string:   N/A             :Z::Y: :M: :I::Z:                S
93       :B:       branch number                   D               nnnn                             S
94       :BD:      body                            B               text                             M
95       :BF:      branch flag                     F               yes or no                        S
96       :CB:      ceiling boundary                F               :R:                              S
97       :C:       comments for delta              D               text                             M
98       :D:       date delta created              D               :Dy:/:Dm:/:Dd:                   S
99       :Dd:      day delta created               D               nn                               S
100       :Dg:      deltas ignored (seq #)          D               :DS: :DS:...                     S
101       :DI:      seq-no. of  deltas  included,   D               :Dn:/:Dx:/:Dg:                   S
102                 excluded, ignored
103       :DL:      delta line statistics           D               :Li:/:Ld:/:Lu:                   S
104       :Dm:      month delta created             D               nn                               S
105       :Dn:      deltas included (seq #)         D               :DS: :DS:...                     S
106       :DP:      predecessor delta seq-no.       D               nnnn                             S
107       :Ds:      default SID                     F               :I:                              S
108       :DS:      delta sequence number           D               nnnn                             S
109       :Dt:      delta information               D               :DT: :I: :D: :T: :P: :DS: :DP:   S
110       :DT:      delta type                      D               D or R                           S
111       :Dx:      deltas excluded (seq #)         D               :DS: ...                         S
112       :Dy:      year delta created              D               nn                               S
113       :F:       s.file name                     N/A             text                             S
114       :FB:      floor boundary                  F               :R:                              S
115       :FD:      file descriptive text           C               text                             M
116       :FL:      flag list                       F               text                             M
117       :GB:      gotten body                     B               text                             M
118       :I:       SCCS delta ID (SID)             D               :R:.:L:.:B:.:S:                  S
119       :J:       joint edit flag                 F               yes or no                        S
120       :KF:      keyword error/warning flag      F               yes or no                        S
121       :L:       level number                    D               nnnn                             S
122       :Ld:      lines deleted by delta          D               nnnnn                            S
123       :Li:      lines inserted by delta         D               nnnnn                            S
124       :LK:      locked releases                 F               :R:...                           S
125       :Lu:      lines unchanged by delta        D               nnnnn                            S
126       :M:       module name                     F               text                             S
127       :MF:      MR validation flag              F               yes or no                        S
128       :MP:      MR validation program           F               text                             S
129       :MR:      MR numbers for delta            D               text                             M
130       :ND:      null delta flag                 F               yes or no                        S
131       :Q:       user defined keyword            F               text                             S
132
133       :P:       user who created delta          D               username                         S
134       :PN:      s.file's pathname               N/A             text                             S
135       :R:       release number                  D               nnnn                             S
136       :S:       sequence number                 D               nnnn                             S
137       :T:       time delta created              D               :Th:::Tm:::Ts:                   S
138       :Th:      hour delta created              D               nn                               S
139       :Tm:      minutes delta created           D               nn                               S
140       :Ts:      seconds delta created           D               nn                               S
141       :UN:      user names                      U               text                             M
142       :W:       a form of what string           N/A             :Z::M:\t:I:                      S
143       :Y:       module type flag                F               text                             S
144       :Z:       what string delimiter           N/A             @(#)                             S
145
146
147
148       *B = body, D = delta table, F = flags, U = user names
149
150
151       **S = simple format, M = multi-line format
152

EXAMPLES

154       Example 1 Displaying delta entries
155
156
157       The following command displays delta entries:
158
159
160         example% prs -e -d":I:\t:P:" program.c
161
162
163
164
165       produces:
166
167
168         1.6    username
169         1.5 username...
170
171
172

ENVIRONMENT VARIABLES

174       See  environ(5) for descriptions of the following environment variables
175       that affect the execution of prs: LANG, LC_ALL, LC_CTYPE,  LC_MESSAGES,
176       and NLSPATH.
177

FILES

179       /tmp/pr?????    temporary file
180
181

ATTRIBUTES

183       See attributes(5) for descriptions of the following attributes:
184
185
186
187
188       ┌─────────────────────────────┬─────────────────────────────┐
189       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
190       ├─────────────────────────────┼─────────────────────────────┤
191       │Availability                 │SUNWsprot                    │
192       ├─────────────────────────────┼─────────────────────────────┤
193       │Interface Stability          │Standard                     │
194       └─────────────────────────────┴─────────────────────────────┘
195

SEE ALSO

197       sccs(1),  sccs-cdc(1),  sccs-delta(1), sccs-get(1), sccs-help(1), sccs-
198       prt(1),   sccs-sact(1),   sccs-sccsdiff(1),    what(1),    sccsfile(4),
199       attributes(5), environ(5), standards(5)
200

DIAGNOSTICS

202       Use the SCCS help command for explanations (see sccs-help(1)).
203
204
205
206SunOS 5.11                        3 Jul 2007                       sccs-prs(1)
Impressum