remove ADMINFILE kludge
[unix-history] / usr / src / usr.bin / sccs / sccs.1
CommitLineData
39ae1365
EA
1.TH SCCS 1
2.UC
3.SH NAME
4sccs \- front end for the
5.SM SCCS
6subsystem
7.SH SYNOPSIS
8.B sccs
9[
10.B \-r
11] [
12.BI \-p path
13] command [ flags ] [ args ]
14.SH DESCRIPTION
15.I Sccs
16is a front end
17to csvax:eric.
18that make them mesh more cleanly
19with the rest of UNIX.
20It also runs as a special user
21.B sccs
22so that the
23.SM SCCS
24file protection
25can be used to advantage.
26.PP
27Basically,
28.I sccs
29runs the
30.I command
31with the specified
32.I flags
33and
34.I args.
35Each
36argument
37is modified to be prepended
324bd523 38with ``SCCS/s.''
39ae1365
EA
39unless it begins with ``s.'',
40contains a `\|/\|' character,
41or specifies a directory.
42.PP
43Flags to be interpreted by the
44.I sccs
45program must be before the
46.I command
47argument.
48Flags to be passed to the actual
49.SM SCCS
50program
51must come after the
52.I command
53argument.
54These flags are specific to the command
55and are discussed in the documentation for that command.
56.PP
57The
58.B \-r
59flag runs
60.I sccs
61as the real user
62rather than as the pseudo-user
63.B sccs.
64The
65.B \-p
70caf673
EA
66flag defines the pathname of the directory
67in which
39ae1365 68.SM SCCS
70caf673
EA
69will be found;
70``SCCS'' is the default.
71.PP
72Certain commands (such as
73.IR admin )
74cannot be run by all users,
75since it would allow anyone to change the authorizations.
76If the file
77.I ADMINFILE
78exists in the
79.SM SCCS
80directory,
81lines of the form
82.sp 0.3
83.in +0.5i
84.B A
85.I uid
86.in
87.sp 0.3
88in this file
89authorize the user with
90the numerical
91user id
92.I uid
93to run protected commands.
94If the file is not present,
95anyone can run all commands.
96This file can be expected to expand
97to contain more information
98in the future.
39ae1365
EA
99.SH EXAMPLES
100.de BX
101.nf
102.in +0.5i
103.sp 0.3
104..
105.de EX
106.fi
107.in -0.5i
108.sp 0.3
109..
110To get a file for editting,
111edit it,
112and produce a new delta:
113.BX
114% sccs get \-e file.c
115% ex file.c
116% sccs delta file.c
117.EX
118To get a file from another directory:
119.BX
120% sccs \-p/usr/src/sccs/s. get cc.c
121.EX
122or
123.BX
124% sccs get /usr/src/sccs/s.cc.c
125.EX
126To make a delta of a large number of files
127in the current directory:
128.BX
129% sccs delta *.c
130.EX
131In a makefile, to get source files
132from an
133.SM SCCS
134file if it does not already exist:
135.BX
136SRCS = <list of source files>
137OBJS = <list of object files>
138.sp 0.4
139$(OBJS): $(SRCS)
140.sp 0.4
70caf673
EA
141$(SRCS):
142 sccs get $(REL) $@
39ae1365
EA
143.EX
144.SH "SEE ALSO"
145admin(SCCS),
146chghist(SCCS),
147comb(SCCS),
148delta(SCCS),
149get(SCCS),
150help(SCCS),
151prt(SCCS),
152rmdel(SCCS),
153sccsdiff(SCCS),
154what(SCCS),
155sccsdir(UCB)
156.SH AUTHOR
157Eric Allman (csvax:eric)
158.SH DISCLAIMER
159Since it is not yet clear
160what this program should do,
161it should not be considered
162a stable program product.
163Please send any
164constructive suggestions
165to csvax:eric.