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