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