Commit | Line | Data |
---|---|---|
39ae1365 | 1 | .TH SCCS 1 |
39ae1365 EA |
2 | .SH NAME |
3 | sccs \- front end for the | |
4 | .SM SCCS | |
5 | subsystem | |
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 | |
15 | is a front end | |
2de7ab2b EA |
16 | to the |
17 | .SM SCCS | |
18 | programs | |
19 | that help them mesh more cleanly | |
39ae1365 | 20 | with the rest of UNIX. |
af83554c EA |
21 | It also includes the capability to run |
22 | ``set user id'' to another user | |
23 | to provide additional protection. | |
39ae1365 EA |
24 | .PP |
25 | Basically, | |
26 | .I sccs | |
27 | runs the | |
28 | .I command | |
29 | with the specified | |
30 | .I flags | |
31 | and | |
32 | .I args. | |
33 | Each | |
34 | argument | |
35 | is modified to be prepended | |
324bd523 | 36 | with ``SCCS/s.'' |
39ae1365 EA |
37 | unless it begins with ``s.'', |
38 | contains a `\|/\|' character, | |
39 | or specifies a directory. | |
40 | .PP | |
41 | Flags to be interpreted by the | |
42 | .I sccs | |
43 | program must be before the | |
44 | .I command | |
45 | argument. | |
46 | Flags to be passed to the actual | |
47 | .SM SCCS | |
48 | program | |
49 | must come after the | |
50 | .I command | |
51 | argument. | |
52 | These flags are specific to the command | |
53 | and are discussed in the documentation for that command. | |
54 | .PP | |
9e6171bb EA |
55 | Besides the usual |
56 | .SM SCCS | |
57 | commands, | |
58 | several ``pseudo-commands'' can be issued. | |
59 | These are: | |
60 | .IP del 1i | |
61 | Perform a delta on the named files | |
62 | and then get new versions. | |
63 | The new versions will have id keywords expanded, | |
64 | and will not be editable. | |
65 | .IP fix | |
66 | Must be followed by a | |
67 | .B \-r | |
68 | flag. | |
69 | This command essentially removes the named delta, | |
70 | but leaves you with a copy of the delta | |
71 | with the changes that were in it. | |
72 | It is useful for fixing small compiler bugs, etc. | |
73 | Since it doesn't leave audit trails, | |
74 | it should be used carefully. | |
75 | .IP clean | |
76 | Takes no arguments. | |
77 | This routine removes everything from the current directory | |
78 | that can be recreated from SCCS files. | |
79 | It will not remove any files being editted. | |
80 | .PP | |
39ae1365 EA |
81 | The |
82 | .B \-r | |
83 | flag runs | |
84 | .I sccs | |
85 | as the real user | |
af83554c EA |
86 | rather than as whatever effective user |
87 | .I sccs | |
88 | is ``set user id'' to. | |
39ae1365 EA |
89 | The |
90 | .B \-p | |
70caf673 EA |
91 | flag defines the pathname of the directory |
92 | in which | |
39ae1365 | 93 | .SM SCCS |
70caf673 EA |
94 | will be found; |
95 | ``SCCS'' is the default. | |
96 | .PP | |
97 | Certain commands (such as | |
98 | .IR admin ) | |
af83554c EA |
99 | cannot be run ``set user id'' by all users, |
100 | since this would allow anyone to change the authorizations. | |
101 | These 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 | .. | |
113 | To get a file for editting, | |
114 | edit it, | |
115 | and produce a new delta: | |
116 | .BX | |
2de7ab2b EA |
117 | sccs get \-e file.c |
118 | ex file.c | |
119 | sccs delta file.c | |
39ae1365 EA |
120 | .EX |
121 | To get a file from another directory: | |
122 | .BX | |
2de7ab2b | 123 | sccs \-p/usr/src/sccs/s. get cc.c |
39ae1365 EA |
124 | .EX |
125 | or | |
126 | .BX | |
2de7ab2b | 127 | sccs get /usr/src/sccs/s.cc.c |
39ae1365 EA |
128 | .EX |
129 | To make a delta of a large number of files | |
130 | in the current directory: | |
131 | .BX | |
2de7ab2b | 132 | sccs delta *.c |
39ae1365 EA |
133 | .EX |
134 | In a makefile, to get source files | |
135 | from an | |
136 | .SM SCCS | |
137 | file if it does not already exist: | |
138 | .BX | |
139 | SRCS = <list of source files> | |
140 | OBJS = <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" | |
148 | admin(SCCS), | |
149 | chghist(SCCS), | |
150 | comb(SCCS), | |
151 | delta(SCCS), | |
152 | get(SCCS), | |
153 | help(SCCS), | |
154 | prt(SCCS), | |
155 | rmdel(SCCS), | |
156 | sccsdiff(SCCS), | |
157 | what(SCCS), | |
39ae1365 | 158 | .SH AUTHOR |
2de7ab2b | 159 | Eric Allman (ingres:eric) |
39ae1365 EA |
160 | .SH DISCLAIMER |
161 | Since it is not yet clear | |
162 | what this program should do, | |
163 | it should not be considered | |
164 | a stable program product. | |
165 | Please send any | |
166 | constructive suggestions | |
2de7ab2b | 167 | to ingres:eric. |