Commit | Line | Data |
---|---|---|
a2a3f7d9 | 1 | .TH SCCS LOCAL |
797b9789 | 2 | .UC |
39ae1365 EA |
3 | .SH NAME |
4 | sccs \- front end for the | |
5 | .SM SCCS | |
6 | subsystem | |
7 | .SH SYNOPSIS | |
8 | .B sccs | |
9 | [ | |
10 | .B \-r | |
11 | ] [ | |
e5b52011 | 12 | .BI \-d path |
c3a8e591 EA |
13 | ] [ |
14 | .BI \-p path | |
39ae1365 EA |
15 | ] command [ flags ] [ args ] |
16 | .SH DESCRIPTION | |
17 | .I Sccs | |
18 | is a front end | |
2de7ab2b EA |
19 | to the |
20 | .SM SCCS | |
21 | programs | |
22 | that help them mesh more cleanly | |
39ae1365 | 23 | with the rest of UNIX. |
af83554c EA |
24 | It also includes the capability to run |
25 | ``set user id'' to another user | |
26 | to provide additional protection. | |
39ae1365 EA |
27 | .PP |
28 | Basically, | |
29 | .I sccs | |
30 | runs the | |
31 | .I command | |
32 | with the specified | |
33 | .I flags | |
34 | and | |
35 | .I args. | |
36 | Each | |
37 | argument | |
c3a8e591 EA |
38 | is normally modified to be prepended |
39 | with ``SCCS/s.''. | |
39ae1365 EA |
40 | .PP |
41 | Flags to be interpreted by the | |
42 | .I sccs | |
43 | program must be before the | |
44 | .I command | |
45 | argument. | |
46 | Flags to be passed to the actual | |
47 | .SM SCCS | |
48 | program | |
49 | must come after the | |
50 | .I command | |
51 | argument. | |
52 | These flags are specific to the command | |
53 | and are discussed in the documentation for that command. | |
54 | .PP | |
9e6171bb EA |
55 | Besides the usual |
56 | .SM SCCS | |
57 | commands, | |
58 | several ``pseudo-commands'' can be issued. | |
59 | These are: | |
94d25808 EA |
60 | .IP edit 1i |
61 | Equivalent to ``get \-e''. | |
62 | .IP delget | |
9e6171bb EA |
63 | Perform a delta on the named files |
64 | and then get new versions. | |
65 | The new versions will have id keywords expanded, | |
66 | and will not be editable. | |
1087bf95 EA |
67 | The \-m, \-p, \-r, \-s, and \-y flags |
68 | will be passed to delta, | |
69 | and the \-b, \-c, \-e, \-i, \-k, \-l, \-s, and \-x flags | |
70 | will be passed to get. | |
b7991d06 | 71 | .IP deledit |
94d25808 EA |
72 | Equivalent to ``delget'' except that the |
73 | ``get'' phase includes the ``\-e'' flag. | |
74 | This option is useful for making a ``checkpoint'' | |
c3a8e591 | 75 | of your current editing phase. |
1087bf95 EA |
76 | The same flags will be passed to delta |
77 | as described above, | |
78 | and all the flags listed for ``get'' | |
79 | above except \-e and \-k | |
80 | are passed to ``edit''. | |
9e6171bb EA |
81 | .IP fix |
82 | Must be followed by a | |
83 | .B \-r | |
84 | flag. | |
85 | This command essentially removes the named delta, | |
86 | but leaves you with a copy of the delta | |
87 | with the changes that were in it. | |
88 | It is useful for fixing small compiler bugs, etc. | |
89 | Since it doesn't leave audit trails, | |
90 | it should be used carefully. | |
91 | .IP clean | |
9e6171bb EA |
92 | This routine removes everything from the current directory |
93 | that can be recreated from SCCS files. | |
c3a8e591 | 94 | It will not remove any files being edited. |
28ad8b5d EA |
95 | If the |
96 | .B \-b | |
97 | flag is given, branches are ignored in the determination | |
98 | of whether they are being edited; | |
99 | this is dangerous if you are keeping the branches in the | |
100 | same directory. | |
9ef9beda EA |
101 | .IP unedit |
102 | This is the opposite of an ``edit'' | |
103 | or a ``get \-e''. | |
104 | It should be used with extreme caution, | |
105 | since any changes you made since the get | |
106 | will be irretrievably lost. | |
94d25808 | 107 | .IP info |
c3a8e591 | 108 | Gives a listing of all files being edited. |
28ad8b5d EA |
109 | If the |
110 | .B \-b | |
111 | flag is given, | |
112 | branches (i.e., | |
113 | \s-1SID\s0's with two or fewer components) | |
114 | are ignored. | |
6aac25be EA |
115 | If the |
116 | .B \-u | |
117 | flag is given | |
118 | (with an optional argument) | |
119 | then only files being edited by you | |
120 | (or the named user) | |
121 | are listed. | |
a2a3f7d9 EA |
122 | .IP check |
123 | Like ``info'' | |
124 | except that nothing is printed if nothing is being edited, | |
125 | and a non-zero exit status is returned if anything | |
126 | is being edited. | |
127 | The intent is to have this included in an ``install'' | |
128 | entry in a makefile | |
129 | to insure that everything is included into the | |
130 | .SM SCCS | |
131 | file | |
132 | before a version is installed. | |
aad1cfb4 EA |
133 | .IP tell |
134 | Gives a newline-separated list | |
135 | of the files being edited | |
136 | on the standard output. | |
28ad8b5d EA |
137 | Takes the |
138 | .B \-b | |
6aac25be EA |
139 | and |
140 | .B \-u | |
141 | flags like | |
28ad8b5d | 142 | ``info'' and ``check''. |
ecf8b19b EA |
143 | .IP diffs |
144 | Gives a ``diff'' listing between the current version of the | |
145 | program(s) you have out for editing and the versions | |
146 | in | |
147 | .SM SCCS | |
148 | format. | |
63fe484d EA |
149 | The |
150 | .B \-r, | |
151 | .B \-c, | |
152 | .B \-i, | |
153 | .B \-x, | |
154 | and | |
155 | .B \-t | |
156 | flags are passed to | |
157 | .I get\c | |
158 | ; the | |
159 | .B \-l, | |
160 | .B \-s, | |
161 | .B \-e, | |
162 | .B \-f, | |
163 | .B \-h, | |
164 | and | |
165 | .B \-b | |
166 | options are passed to | |
167 | .I diff. | |
168 | The | |
169 | .B \-C | |
170 | flag is passed to | |
171 | .I diff | |
172 | as | |
173 | .B \-c. | |
9e6171bb | 174 | .PP |
39ae1365 EA |
175 | The |
176 | .B \-r | |
177 | flag runs | |
178 | .I sccs | |
179 | as the real user | |
af83554c EA |
180 | rather than as whatever effective user |
181 | .I sccs | |
182 | is ``set user id'' to. | |
39ae1365 | 183 | The |
c3a8e591 EA |
184 | .B \-d |
185 | flag gives a root directory for the | |
186 | .SM SCCS | |
187 | files. | |
188 | The default is the current directory. | |
189 | The | |
39ae1365 | 190 | .B \-p |
70caf673 | 191 | flag defines the pathname of the directory |
c3a8e591 | 192 | in which the |
39ae1365 | 193 | .SM SCCS |
c3a8e591 | 194 | files will be found; |
70caf673 | 195 | ``SCCS'' is the default. |
e5b52011 | 196 | The |
e5b52011 | 197 | .B \-p |
c3a8e591 EA |
198 | flag differs from the |
199 | .B \-d | |
200 | flag in that the | |
e5b52011 EA |
201 | .B \-d |
202 | argument is prepended to the entire pathname | |
203 | and the | |
204 | .B \-p | |
205 | argument is inserted before the final component of the | |
206 | pathname. | |
207 | For example, | |
208 | ``sccs -d/x -py get a/b'' | |
209 | will convert to | |
210 | ``get /x/a/y/s.b''. | |
211 | The intent here is to create aliases such as | |
212 | ``alias syssccs sccs -d/usr/src'' | |
213 | which will be used as | |
214 | ``syssccs get cmd/who.c''. | |
70caf673 EA |
215 | .PP |
216 | Certain commands (such as | |
217 | .IR admin ) | |
af83554c EA |
218 | cannot be run ``set user id'' by all users, |
219 | since this would allow anyone to change the authorizations. | |
220 | These commands are always run as the real user. | |
39ae1365 EA |
221 | .SH EXAMPLES |
222 | .de BX | |
813d780e | 223 | .PP |
39ae1365 EA |
224 | .nf |
225 | .in +0.5i | |
39ae1365 EA |
226 | .. |
227 | .de EX | |
228 | .fi | |
813d780e | 229 | .PP |
39ae1365 | 230 | .. |
c3a8e591 | 231 | To get a file for editing, |
39ae1365 EA |
232 | edit it, |
233 | and produce a new delta: | |
234 | .BX | |
2de7ab2b EA |
235 | sccs get \-e file.c |
236 | ex file.c | |
237 | sccs delta file.c | |
39ae1365 EA |
238 | .EX |
239 | To get a file from another directory: | |
240 | .BX | |
2de7ab2b | 241 | sccs \-p/usr/src/sccs/s. get cc.c |
39ae1365 EA |
242 | .EX |
243 | or | |
244 | .BX | |
2de7ab2b | 245 | sccs get /usr/src/sccs/s.cc.c |
39ae1365 EA |
246 | .EX |
247 | To make a delta of a large number of files | |
248 | in the current directory: | |
249 | .BX | |
2de7ab2b | 250 | sccs delta *.c |
39ae1365 | 251 | .EX |
6aac25be EA |
252 | To get a list of files being edited that are not on branches: |
253 | .BX | |
254 | sccs info \-b | |
255 | .EX | |
256 | To delta everything being edited by you: | |
257 | .BX | |
258 | sccs delta \`sccs tell \-u\` | |
259 | .EX | |
39ae1365 EA |
260 | In a makefile, to get source files |
261 | from an | |
262 | .SM SCCS | |
263 | file if it does not already exist: | |
264 | .BX | |
265 | SRCS = <list of source files> | |
70caf673 EA |
266 | $(SRCS): |
267 | sccs get $(REL) $@ | |
39ae1365 EA |
268 | .EX |
269 | .SH "SEE ALSO" | |
270 | admin(SCCS), | |
271 | chghist(SCCS), | |
272 | comb(SCCS), | |
273 | delta(SCCS), | |
274 | get(SCCS), | |
275 | help(SCCS), | |
276 | prt(SCCS), | |
277 | rmdel(SCCS), | |
278 | sccsdiff(SCCS), | |
813d780e EA |
279 | what(SCCS) |
280 | .br | |
281 | Eric Allman, | |
282 | .ul | |
283 | An Introduction to the Source Code Control System | |
d35f5db1 EA |
284 | .SH BUGS |
285 | It should be able to take directory arguments on pseudo-commands | |
286 | like the | |
287 | .SM SCCS | |
288 | commands do. | |
39ae1365 EA |
289 | .SH DISCLAIMER |
290 | Since it is not yet clear | |
291 | what this program should do, | |
292 | it should not be considered | |
293 | a stable program product. | |
294 | Please send any | |
c3a8e591 EA |
295 | comments & suggestions |
296 | to csvax:eric. |