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 | |
92 | Takes no arguments. | |
93 | This routine removes everything from the current directory | |
94 | that can be recreated from SCCS files. | |
c3a8e591 | 95 | It will not remove any files being edited. |
9ef9beda EA |
96 | .IP unedit |
97 | This is the opposite of an ``edit'' | |
98 | or a ``get \-e''. | |
99 | It should be used with extreme caution, | |
100 | since any changes you made since the get | |
101 | will be irretrievably lost. | |
94d25808 | 102 | .IP info |
c3a8e591 | 103 | Gives a listing of all files being edited. |
a2a3f7d9 EA |
104 | .IP check |
105 | Like ``info'' | |
106 | except that nothing is printed if nothing is being edited, | |
107 | and a non-zero exit status is returned if anything | |
108 | is being edited. | |
109 | The intent is to have this included in an ``install'' | |
110 | entry in a makefile | |
111 | to insure that everything is included into the | |
112 | .SM SCCS | |
113 | file | |
114 | before a version is installed. | |
9e6171bb | 115 | .PP |
39ae1365 EA |
116 | The |
117 | .B \-r | |
118 | flag runs | |
119 | .I sccs | |
120 | as the real user | |
af83554c EA |
121 | rather than as whatever effective user |
122 | .I sccs | |
123 | is ``set user id'' to. | |
39ae1365 | 124 | The |
c3a8e591 EA |
125 | .B \-d |
126 | flag gives a root directory for the | |
127 | .SM SCCS | |
128 | files. | |
129 | The default is the current directory. | |
130 | The | |
39ae1365 | 131 | .B \-p |
70caf673 | 132 | flag defines the pathname of the directory |
c3a8e591 | 133 | in which the |
39ae1365 | 134 | .SM SCCS |
c3a8e591 | 135 | files will be found; |
70caf673 | 136 | ``SCCS'' is the default. |
e5b52011 | 137 | The |
e5b52011 | 138 | .B \-p |
c3a8e591 EA |
139 | flag differs from the |
140 | .B \-d | |
141 | flag in that the | |
e5b52011 EA |
142 | .B \-d |
143 | argument is prepended to the entire pathname | |
144 | and the | |
145 | .B \-p | |
146 | argument is inserted before the final component of the | |
147 | pathname. | |
148 | For example, | |
149 | ``sccs -d/x -py get a/b'' | |
150 | will convert to | |
151 | ``get /x/a/y/s.b''. | |
152 | The intent here is to create aliases such as | |
153 | ``alias syssccs sccs -d/usr/src'' | |
154 | which will be used as | |
155 | ``syssccs get cmd/who.c''. | |
70caf673 EA |
156 | .PP |
157 | Certain commands (such as | |
158 | .IR admin ) | |
af83554c EA |
159 | cannot be run ``set user id'' by all users, |
160 | since this would allow anyone to change the authorizations. | |
161 | These commands are always run as the real user. | |
39ae1365 EA |
162 | .SH EXAMPLES |
163 | .de BX | |
813d780e | 164 | .PP |
39ae1365 EA |
165 | .nf |
166 | .in +0.5i | |
39ae1365 EA |
167 | .. |
168 | .de EX | |
169 | .fi | |
813d780e | 170 | .PP |
39ae1365 | 171 | .. |
c3a8e591 | 172 | To get a file for editing, |
39ae1365 EA |
173 | edit it, |
174 | and produce a new delta: | |
175 | .BX | |
2de7ab2b EA |
176 | sccs get \-e file.c |
177 | ex file.c | |
178 | sccs delta file.c | |
39ae1365 EA |
179 | .EX |
180 | To get a file from another directory: | |
181 | .BX | |
2de7ab2b | 182 | sccs \-p/usr/src/sccs/s. get cc.c |
39ae1365 EA |
183 | .EX |
184 | or | |
185 | .BX | |
2de7ab2b | 186 | sccs get /usr/src/sccs/s.cc.c |
39ae1365 EA |
187 | .EX |
188 | To make a delta of a large number of files | |
189 | in the current directory: | |
190 | .BX | |
2de7ab2b | 191 | sccs delta *.c |
39ae1365 EA |
192 | .EX |
193 | In a makefile, to get source files | |
194 | from an | |
195 | .SM SCCS | |
196 | file if it does not already exist: | |
197 | .BX | |
198 | SRCS = <list of source files> | |
70caf673 EA |
199 | $(SRCS): |
200 | sccs get $(REL) $@ | |
39ae1365 EA |
201 | .EX |
202 | .SH "SEE ALSO" | |
203 | admin(SCCS), | |
204 | chghist(SCCS), | |
205 | comb(SCCS), | |
206 | delta(SCCS), | |
207 | get(SCCS), | |
208 | help(SCCS), | |
209 | prt(SCCS), | |
210 | rmdel(SCCS), | |
211 | sccsdiff(SCCS), | |
813d780e EA |
212 | what(SCCS) |
213 | .br | |
214 | Eric Allman, | |
215 | .ul | |
216 | An Introduction to the Source Code Control System | |
39ae1365 EA |
217 | .SH DISCLAIMER |
218 | Since it is not yet clear | |
219 | what this program should do, | |
220 | it should not be considered | |
221 | a stable program product. | |
222 | Please send any | |
c3a8e591 EA |
223 | comments & suggestions |
224 | to csvax:eric. |