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