arranged so that links such as "get" and "prt" will work
[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
55The
56.B \-r
57flag runs
58.I sccs
59as the real user
af83554c
EA
60rather than as whatever effective user
61.I sccs
62is ``set user id'' to.
39ae1365
EA
63The
64.B \-p
70caf673
EA
65flag defines the pathname of the directory
66in which
39ae1365 67.SM SCCS
70caf673
EA
68will be found;
69``SCCS'' is the default.
70.PP
71Certain commands (such as
72.IR admin )
af83554c
EA
73cannot be run ``set user id'' by all users,
74since this would allow anyone to change the authorizations.
75These commands are always run as the real user.
39ae1365
EA
76.SH EXAMPLES
77.de BX
78.nf
79.in +0.5i
80.sp 0.3
81..
82.de EX
83.fi
84.in -0.5i
85.sp 0.3
86..
87To get a file for editting,
88edit it,
89and produce a new delta:
90.BX
2de7ab2b
EA
91sccs get \-e file.c
92ex file.c
93sccs delta file.c
39ae1365
EA
94.EX
95To get a file from another directory:
96.BX
2de7ab2b 97sccs \-p/usr/src/sccs/s. get cc.c
39ae1365
EA
98.EX
99or
100.BX
2de7ab2b 101sccs get /usr/src/sccs/s.cc.c
39ae1365
EA
102.EX
103To make a delta of a large number of files
104in the current directory:
105.BX
2de7ab2b 106sccs delta *.c
39ae1365
EA
107.EX
108In a makefile, to get source files
109from an
110.SM SCCS
111file if it does not already exist:
112.BX
113SRCS = <list of source files>
114OBJS = <list of object files>
115.sp 0.4
116$(OBJS): $(SRCS)
117.sp 0.4
70caf673
EA
118$(SRCS):
119 sccs get $(REL) $@
39ae1365
EA
120.EX
121.SH "SEE ALSO"
122admin(SCCS),
123chghist(SCCS),
124comb(SCCS),
125delta(SCCS),
126get(SCCS),
127help(SCCS),
128prt(SCCS),
129rmdel(SCCS),
130sccsdiff(SCCS),
131what(SCCS),
39ae1365 132.SH AUTHOR
2de7ab2b 133Eric Allman (ingres:eric)
39ae1365
EA
134.SH DISCLAIMER
135Since it is not yet clear
136what this program should do,
137it should not be considered
138a stable program product.
139Please send any
140constructive suggestions
2de7ab2b 141to ingres:eric.