expanded "info" option
[unix-history] / usr / src / usr.bin / sccs / sccs.1
CommitLineData
39ae1365 1.TH SCCS 1
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] [
11.BI \-p path
12] command [ flags ] [ args ]
13.SH DESCRIPTION
14.I Sccs
15is a front end
2de7ab2b
EA
16to the
17.SM SCCS
18programs
19that help them mesh more cleanly
39ae1365 20with the rest of UNIX.
af83554c
EA
21It also includes the capability to run
22``set user id'' to another user
23to provide additional protection.
39ae1365
EA
24.PP
25Basically,
26.I sccs
27runs the
28.I command
29with the specified
30.I flags
31and
32.I args.
33Each
34argument
35is modified to be prepended
324bd523 36with ``SCCS/s.''
39ae1365
EA
37unless it begins with ``s.'',
38contains a `\|/\|' character,
39or specifies a directory.
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:
60.IP del 1i
61Perform a delta on the named files
62and then get new versions.
63The new versions will have id keywords expanded,
64and will not be editable.
65.IP fix
66Must be followed by a
67.B \-r
68flag.
69This command essentially removes the named delta,
70but leaves you with a copy of the delta
71with the changes that were in it.
72It is useful for fixing small compiler bugs, etc.
73Since it doesn't leave audit trails,
74it should be used carefully.
75.IP clean
76Takes no arguments.
77This routine removes everything from the current directory
78that can be recreated from SCCS files.
79It will not remove any files being editted.
80.PP
39ae1365
EA
81The
82.B \-r
83flag runs
84.I sccs
85as the real user
af83554c
EA
86rather than as whatever effective user
87.I sccs
88is ``set user id'' to.
39ae1365
EA
89The
90.B \-p
70caf673
EA
91flag defines the pathname of the directory
92in which
39ae1365 93.SM SCCS
70caf673
EA
94will be found;
95``SCCS'' is the default.
96.PP
97Certain commands (such as
98.IR admin )
af83554c
EA
99cannot be run ``set user id'' by all users,
100since this would allow anyone to change the authorizations.
101These commands are always run as the real user.
39ae1365
EA
102.SH EXAMPLES
103.de BX
104.nf
105.in +0.5i
106.sp 0.3
107..
108.de EX
109.fi
110.in -0.5i
111.sp 0.3
112..
113To get a file for editting,
114edit it,
115and produce a new delta:
116.BX
2de7ab2b
EA
117sccs get \-e file.c
118ex file.c
119sccs delta file.c
39ae1365
EA
120.EX
121To get a file from another directory:
122.BX
2de7ab2b 123sccs \-p/usr/src/sccs/s. get cc.c
39ae1365
EA
124.EX
125or
126.BX
2de7ab2b 127sccs get /usr/src/sccs/s.cc.c
39ae1365
EA
128.EX
129To make a delta of a large number of files
130in the current directory:
131.BX
2de7ab2b 132sccs delta *.c
39ae1365
EA
133.EX
134In a makefile, to get source files
135from an
136.SM SCCS
137file if it does not already exist:
138.BX
139SRCS = <list of source files>
140OBJS = <list of object files>
141.sp 0.4
142$(OBJS): $(SRCS)
143.sp 0.4
70caf673
EA
144$(SRCS):
145 sccs get $(REL) $@
39ae1365
EA
146.EX
147.SH "SEE ALSO"
148admin(SCCS),
149chghist(SCCS),
150comb(SCCS),
151delta(SCCS),
152get(SCCS),
153help(SCCS),
154prt(SCCS),
155rmdel(SCCS),
156sccsdiff(SCCS),
157what(SCCS),
39ae1365 158.SH AUTHOR
2de7ab2b 159Eric Allman (ingres:eric)
39ae1365
EA
160.SH DISCLAIMER
161Since it is not yet clear
162what this program should do,
163it should not be considered
164a stable program product.
165Please send any
166constructive suggestions
2de7ab2b 167to ingres:eric.