Commit | Line | Data |
---|---|---|
a2a3f7d9 | 1 | .TH SCCS LOCAL |
39ae1365 EA |
2 | .SH NAME |
3 | sccs \- front end for the | |
4 | .SM SCCS | |
5 | subsystem | |
6 | .SH SYNOPSIS | |
7 | .B sccs | |
8 | [ | |
9 | .B \-r | |
10 | ] [ | |
e5b52011 | 11 | .BI \-d path |
c3a8e591 EA |
12 | ] [ |
13 | .BI \-p path | |
39ae1365 EA |
14 | ] command [ flags ] [ args ] |
15 | .SH DESCRIPTION | |
16 | .I Sccs | |
17 | is a front end | |
2de7ab2b EA |
18 | to the |
19 | .SM SCCS | |
20 | programs | |
21 | that help them mesh more cleanly | |
39ae1365 | 22 | with the rest of UNIX. |
af83554c EA |
23 | It also includes the capability to run |
24 | ``set user id'' to another user | |
25 | to provide additional protection. | |
39ae1365 EA |
26 | .PP |
27 | Basically, | |
28 | .I sccs | |
29 | runs the | |
30 | .I command | |
31 | with the specified | |
32 | .I flags | |
33 | and | |
34 | .I args. | |
35 | Each | |
36 | argument | |
c3a8e591 EA |
37 | is normally modified to be prepended |
38 | with ``SCCS/s.''. | |
39ae1365 EA |
39 | .PP |
40 | Flags to be interpreted by the | |
41 | .I sccs | |
42 | program must be before the | |
43 | .I command | |
44 | argument. | |
45 | Flags to be passed to the actual | |
46 | .SM SCCS | |
47 | program | |
48 | must come after the | |
49 | .I command | |
50 | argument. | |
51 | These flags are specific to the command | |
52 | and are discussed in the documentation for that command. | |
53 | .PP | |
9e6171bb EA |
54 | Besides the usual |
55 | .SM SCCS | |
56 | commands, | |
57 | several ``pseudo-commands'' can be issued. | |
58 | These are: | |
94d25808 EA |
59 | .IP edit 1i |
60 | Equivalent to ``get \-e''. | |
61 | .IP delget | |
9e6171bb EA |
62 | Perform a delta on the named files |
63 | and then get new versions. | |
64 | The new versions will have id keywords expanded, | |
65 | and will not be editable. | |
b7991d06 | 66 | .IP deledit |
94d25808 EA |
67 | Equivalent to ``delget'' except that the |
68 | ``get'' phase includes the ``\-e'' flag. | |
69 | This option is useful for making a ``checkpoint'' | |
c3a8e591 | 70 | of your current editing phase. |
9e6171bb EA |
71 | .IP fix |
72 | Must be followed by a | |
73 | .B \-r | |
74 | flag. | |
75 | This command essentially removes the named delta, | |
76 | but leaves you with a copy of the delta | |
77 | with the changes that were in it. | |
78 | It is useful for fixing small compiler bugs, etc. | |
79 | Since it doesn't leave audit trails, | |
80 | it should be used carefully. | |
81 | .IP clean | |
82 | Takes no arguments. | |
83 | This routine removes everything from the current directory | |
84 | that can be recreated from SCCS files. | |
c3a8e591 | 85 | It will not remove any files being edited. |
9ef9beda EA |
86 | .IP unedit |
87 | This is the opposite of an ``edit'' | |
88 | or a ``get \-e''. | |
89 | It should be used with extreme caution, | |
90 | since any changes you made since the get | |
91 | will be irretrievably lost. | |
94d25808 | 92 | .IP info |
c3a8e591 | 93 | Gives a listing of all files being edited. |
a2a3f7d9 EA |
94 | .IP check |
95 | Like ``info'' | |
96 | except that nothing is printed if nothing is being edited, | |
97 | and a non-zero exit status is returned if anything | |
98 | is being edited. | |
99 | The intent is to have this included in an ``install'' | |
100 | entry in a makefile | |
101 | to insure that everything is included into the | |
102 | .SM SCCS | |
103 | file | |
104 | before a version is installed. | |
9e6171bb | 105 | .PP |
39ae1365 EA |
106 | The |
107 | .B \-r | |
108 | flag runs | |
109 | .I sccs | |
110 | as the real user | |
af83554c EA |
111 | rather than as whatever effective user |
112 | .I sccs | |
113 | is ``set user id'' to. | |
39ae1365 | 114 | The |
c3a8e591 EA |
115 | .B \-d |
116 | flag gives a root directory for the | |
117 | .SM SCCS | |
118 | files. | |
119 | The default is the current directory. | |
120 | The | |
39ae1365 | 121 | .B \-p |
70caf673 | 122 | flag defines the pathname of the directory |
c3a8e591 | 123 | in which the |
39ae1365 | 124 | .SM SCCS |
c3a8e591 | 125 | files will be found; |
70caf673 | 126 | ``SCCS'' is the default. |
e5b52011 | 127 | The |
e5b52011 | 128 | .B \-p |
c3a8e591 EA |
129 | flag differs from the |
130 | .B \-d | |
131 | flag in that the | |
e5b52011 EA |
132 | .B \-d |
133 | argument is prepended to the entire pathname | |
134 | and the | |
135 | .B \-p | |
136 | argument is inserted before the final component of the | |
137 | pathname. | |
138 | For example, | |
139 | ``sccs -d/x -py get a/b'' | |
140 | will convert to | |
141 | ``get /x/a/y/s.b''. | |
142 | The intent here is to create aliases such as | |
143 | ``alias syssccs sccs -d/usr/src'' | |
144 | which will be used as | |
145 | ``syssccs get cmd/who.c''. | |
70caf673 EA |
146 | .PP |
147 | Certain commands (such as | |
148 | .IR admin ) | |
af83554c EA |
149 | cannot be run ``set user id'' by all users, |
150 | since this would allow anyone to change the authorizations. | |
151 | These commands are always run as the real user. | |
39ae1365 EA |
152 | .SH EXAMPLES |
153 | .de BX | |
154 | .nf | |
155 | .in +0.5i | |
156 | .sp 0.3 | |
157 | .. | |
158 | .de EX | |
159 | .fi | |
160 | .in -0.5i | |
161 | .sp 0.3 | |
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> | |
39ae1365 | 190 | .sp 0.4 |
70caf673 EA |
191 | $(SRCS): |
192 | sccs get $(REL) $@ | |
39ae1365 EA |
193 | .EX |
194 | .SH "SEE ALSO" | |
195 | admin(SCCS), | |
196 | chghist(SCCS), | |
197 | comb(SCCS), | |
198 | delta(SCCS), | |
199 | get(SCCS), | |
200 | help(SCCS), | |
201 | prt(SCCS), | |
202 | rmdel(SCCS), | |
203 | sccsdiff(SCCS), | |
204 | what(SCCS), | |
39ae1365 | 205 | .SH AUTHOR |
c3a8e591 | 206 | Eric Allman |
39ae1365 EA |
207 | .SH DISCLAIMER |
208 | Since it is not yet clear | |
209 | what this program should do, | |
210 | it should not be considered | |
211 | a stable program product. | |
212 | Please send any | |
c3a8e591 EA |
213 | comments & suggestions |
214 | to csvax:eric. |