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