1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544
|
'\" et
.TH SCCS "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
.\"
.SH PROLOG
This manual page is part of the POSIX Programmer's Manual.
The Linux implementation of this interface may differ (consult
the corresponding Linux manual page for details of Linux behavior),
or the interface may not be implemented on Linux.
.\"
.SH NAME
sccs
\(em front end for the SCCS subsystem (\fBDEVELOPMENT\fP)
.SH SYNOPSIS
.LP
.nf
sccs \fB[\fR-r\fB] [\fR-d \fIpath\fB] [\fR-p \fIpath\fB] \fIcommand \fB[\fIoptions\fR...\fB] [\fIoperands\fR...\fB]\fR
.fi
.SH DESCRIPTION
The
.IR sccs
utility is a front end to the SCCS programs. It also includes the
capability to run set-user-id to another user to provide additional
protection.
.P
The
.IR sccs
utility shall invoke the specified
.IR command
with the specified
.IR options
and
.IR operands .
By default, each of the
.IR operands
shall be modified by prefixing it with the string
.BR \(dqSCCS/s.\(dq .
.P
The
.IR command
can be the name of one of the SCCS utilities in this volume of POSIX.1\(hy2017 (\c
.IR admin ,
.IR delta ,
.IR get ,
.IR prs ,
.IR rmdel ,
.IR sact ,
.IR unget ,
.IR val ,
or
.IR what )
or one of the pseudo-utilities listed in the EXTENDED DESCRIPTION
section.
.SH OPTIONS
The
.IR sccs
utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
.IR "Section 12.2" ", " "Utility Syntax Guidelines",
except that
.IR options
operands are actually options to be passed to the utility named by
.IR command .
When the portion of the command:
.sp
.RS 4
.nf
\fIcommand \fB[\fIoptions\fR ... \fB] [\fIoperands\fR ... \fB]\fR
.fi
.P
.RE
.P
is considered, all of the pseudo-utilities used as
.IR command
shall support the Utility Syntax Guidelines. Any of the other SCCS
utilities that can be invoked in this manner support the Guidelines to
the extent indicated by their individual OPTIONS sections.
.P
The following options shall be supported preceding the
.IR command
operand:
.IP "\fB\-d\ \fIpath\fR" 10
A pathname of a directory to be used as a root directory for the SCCS
files. The default shall be the current directory. The
.BR \-d
option shall take precedence over the
.IR PROJECTDIR
variable. See
.BR \-p .
.IP "\fB\-p\ \fIpath\fR" 10
A pathname of a directory in which the SCCS files are located. The
default shall be the
.BR SCCS
directory.
.RS 10
.P
The
.BR \-p
option differs from the
.BR \-d
option in that the
.BR \-d
option-argument shall be prefixed to the entire pathname and the
.BR \-p
option-argument shall be inserted before the final component of the
pathname. For example:
.sp
.RS 4
.nf
sccs -d /x -p y get a/b
.fi
.P
.RE
.P
converts to:
.sp
.RS 4
.nf
get /x/a/y/s.b
.fi
.P
.RE
.P
This allows the creation of aliases such as:
.sp
.RS 4
.nf
alias syssccs="sccs -d /usr/src"
.fi
.P
.RE
.P
which is used as:
.sp
.RS 4
.nf
syssccs get cmd/who.c
.fi
.P
.RE
.RE
.IP "\fB\-r\fP" 10
Invoke
.IR command
with the real user ID of the process, not any effective user ID that
the
.IR sccs
utility is set to. Certain commands (\c
.IR admin ,
.BR check ,
.BR clean ,
.BR diffs ,
.BR info ,
.IR rmdel ,
and
.BR tell )
cannot be run set-user-ID by all users, since this would allow anyone
to change the authorizations. These commands are always run as the
real user.
.SH OPERANDS
The following operands shall be supported:
.IP "\fIcommand\fR" 10
An SCCS utility name or the name of one of the pseudo-utilities listed
in the EXTENDED DESCRIPTION section.
.IP "\fIoptions\fR" 10
An option or option-argument to be passed to
.IR command .
.IP "\fIoperands\fR" 10
An operand to be passed to
.IR command .
.SH STDIN
See the utility description for the specified
.IR command .
.SH "INPUT FILES"
See the utility description for the specified
.IR command .
.SH "ENVIRONMENT VARIABLES"
The following environment variables shall affect the execution of
.IR sccs :
.IP "\fILANG\fP" 10
Provide a default value for the internationalization variables that are
unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
.IR "Section 8.2" ", " "Internationalization Variables"
for the precedence of internationalization variables used to determine
the values of locale categories.)
.IP "\fILC_ALL\fP" 10
If set to a non-empty string value, override the values of all the
other internationalization variables.
.IP "\fILC_CTYPE\fP" 10
Determine the locale for the interpretation of sequences of bytes of
text data as characters (for example, single-byte as opposed to
multi-byte characters in arguments and input files).
.IP "\fILC_MESSAGES\fP" 10
.br
Determine the locale that should be used to affect the format and
contents of diagnostic messages written to standard error.
.IP "\fINLSPATH\fP" 10
Determine the location of message catalogs for the processing of
.IR LC_MESSAGES .
.IP "\fIPROJECTDIR\fP" 10
.br
Provide a default value for the
.BR \-d
.IR path
option. If the value of
.IR PROJECTDIR
begins with a
<slash>,
it shall be considered an absolute pathname; otherwise, the value of
.IR PROJECTDIR
is treated as a user name and that user's initial working directory
shall be examined for a subdirectory
.BR src
or
.BR source .
If such a directory is found, it shall be used. Otherwise, the value
shall be used as a relative pathname.
.P
Additional environment variable effects may be found in the utility
description for the specified
.IR command .
.SH "ASYNCHRONOUS EVENTS"
Default.
.SH STDOUT
See the utility description for the specified
.IR command .
.SH STDERR
See the utility description for the specified
.IR command .
.SH "OUTPUT FILES"
See the utility description for the specified
.IR command .
.SH "EXTENDED DESCRIPTION"
The following pseudo-utilities shall be supported as
.IR command
operands. All options referred to in the following list are values
given in the
.IR options
operands following
.IR command .
.IP "\fBcheck\fR" 8
Equivalent to
.BR info ,
except that nothing shall be printed if nothing is being edited, and a
non-zero exit status shall be returned if anything is being edited. The
intent is to have this included in an ``install'' entry in a makefile
to ensure that everything is included into the SCCS file before a
version is installed.
.IP "\fBclean\fR" 8
Remove everything from the current directory that can be recreated from
SCCS files, but do not remove any files being edited. If the
.BR \-b
option is given, branches shall be ignored in the determination of
whether they are being edited; this is dangerous if branches are kept
in the same directory.
.IP "\fBcreate\fR" 8
Create an SCCS file, taking the initial contents from the file of the
same name. Any options to
.IR admin
are accepted. If the creation is successful, the original files shall
be renamed by prefixing the basenames with a comma. These renamed files
should be removed after it has been verified that the SCCS files have
been created successfully.
.IP "\fBdelget\fR" 8
Perform a
.IR delta
on the named files and then
.IR get
new versions. The new versions shall have ID keywords expanded and
shall not be editable. Any
.BR \-m ,
.BR \-p ,
.BR \-r ,
.BR \-s ,
and
.BR \-y
options shall be passed to
.IR delta ,
and any
.BR \-b ,
.BR \-c ,
.BR \-e ,
.BR \-i ,
.BR \-k ,
.BR \-l ,
.BR \-s ,
and
.BR \-x
options shall be passed to
.IR get .
.IP "\fBdeledit\fR" 8
Equivalent to
.BR delget ,
except that the
.IR get
phase shall include the
.BR \-e
option. This option is useful for making a checkpoint of the current
editing phase. The same options shall be passed to
.IR delta
as described above, and all the options listed for
.IR get
above except
.BR \-e
shall be passed to
.BR edit .
.IP "\fBdiffs\fR" 8
Write a difference listing between the current version of the files
checked out for editing and the versions in SCCS format. Any
.BR \-r ,
.BR \-c ,
.BR \-i ,
.BR \-x ,
and
.BR \-t
options shall be passed to
.IR get ;
any
.BR \-l ,
.BR \-s ,
.BR \-e ,
.BR \-f ,
.BR \-h ,
and
.BR \-b
options shall be passed to
.IR diff .
A
.BR \-C
option shall be passed to
.IR diff
as
.BR \-c .
.IP "\fBedit\fR" 8
Equivalent to
.IR get
.BR \-e .
.IP "\fBfix\fR" 8
Remove the named delta, but leave a copy of the delta with the changes
that were in it. It is useful for fixing small compiler bugs, and so
on. The application shall ensure that it is followed by a
.BR \-r
.IR SID
option. Since
.BR fix
does not leave audit trails, it should be used carefully.
.IP "\fBinfo\fR" 8
Write a listing of all files being edited. If the
.BR \-b
option is given, branches (that is, SIDs with two or fewer components)
shall be ignored. If a
.BR \-u
.IR user
option is given, then only files being edited by the named user shall
be listed. A
.BR \-U
option shall be equivalent to
.BR \-u <\c
.IR "current\ user" >.
.IP "\fBprint\fR" 8
Write out verbose information about the named files, equivalent to
.IR sccs
.IR prs .
.IP "\fBtell\fR" 8
Write a
<newline>-separated
list of the files being edited to standard output. Takes the
.BR \-b ,
.BR \-u ,
and
.BR \-U
options like
.BR info
and
.BR check .
.IP "\fBunedit\fR" 8
This is the opposite of an
.BR edit
or a
.IR get
.BR \-e .
It should be used with caution, since any changes made since the
.IR get
are lost.
.br
.SH "EXIT STATUS"
The following exit values shall be returned:
.IP "\00" 6
Successful completion.
.IP >0 6
An error occurred.
.SH "CONSEQUENCES OF ERRORS"
Default.
.LP
.IR "The following sections are informative."
.SH "APPLICATION USAGE"
Many of the SCCS utilities take directory names as operands as well as
specific filenames. The pseudo-utilities supported by
.IR sccs
are not described as having this capability, but are not prohibited
from doing so.
.SH EXAMPLES
.IP " 1." 4
To get a file for editing, edit it and produce a new delta:
.RS 4
.sp
.RS 4
.nf
sccs get -e file.c
ex file.c
sccs delta file.c
.fi
.P
.RE
.RE
.IP " 2." 4
To get a file from another directory:
.RS 4
.sp
.RS 4
.nf
sccs -p /usr/src/sccs/s. get cc.c
.fi
.P
.RE
.P
or:
.sp
.RS 4
.nf
sccs get /usr/src/sccs/s.cc.c
.fi
.P
.RE
.RE
.IP " 3." 4
To make a delta of a large number of files in the current directory:
.RS 4
.sp
.RS 4
.nf
sccs delta *.c
.fi
.P
.RE
.RE
.IP " 4." 4
To get a list of files being edited that are not on branches:
.RS 4
.sp
.RS 4
.nf
sccs info -b
.fi
.P
.RE
.RE
.IP " 5." 4
To delta everything being edited by the current user:
.RS 4
.sp
.RS 4
.nf
sccs delta $(sccs tell -U)
.fi
.P
.RE
.RE
.IP " 6." 4
In a makefile, to get source files from an SCCS file if it does not
already exist:
.RS 4
.sp
.RS 4
.nf
SRCS = <\fIlist of source files\fP>
$(SRCS):
sccs get $(REL) $@
.fi
.P
.RE
.RE
.SH RATIONALE
.IR sccs
and its associated utilities are part of the XSI Development
Utilities option within the XSI option.
.P
SCCS is an abbreviation for Source Code Control System. It is a
maintenance and enhancement tracking tool. When a file is put under
SCCS, the source code control system maintains the file and, when
changes are made, identifies and stores them in the file with the
original source code and/or documentation. As other changes are made,
they too are identified and retained in the file.
.P
Retrieval of the original and any set of changes is possible. Any
version of the file as it develops can be reconstructed for inspection
or additional modification. History data can be stored with each
version, documenting why the changes were made, who made them, and when
they were made.
.SH "FUTURE DIRECTIONS"
None.
.SH "SEE ALSO"
.IR "\fIadmin\fR\^",
.IR "\fIdelta\fR\^",
.IR "\fIget\fR\^",
.IR "\fImake\fR\^",
.IR "\fIprs\fR\^",
.IR "\fIrmdel\fR\^",
.IR "\fIsact\fR\^",
.IR "\fIunget\fR\^",
.IR "\fIval\fR\^",
.IR "\fIwhat\fR\^"
.P
The Base Definitions volume of POSIX.1\(hy2017,
.IR "Chapter 8" ", " "Environment Variables",
.IR "Section 12.2" ", " "Utility Syntax Guidelines"
.\"
.SH COPYRIGHT
Portions of this text are reprinted and reproduced in electronic form
from IEEE Std 1003.1-2017, Standard for Information Technology
-- Portable Operating System Interface (POSIX), The Open Group Base
Specifications Issue 7, 2018 Edition,
Copyright (C) 2018 by the Institute of
Electrical and Electronics Engineers, Inc and The Open Group.
In the event of any discrepancy between this version and the original IEEE and
The Open Group Standard, the original IEEE and The Open Group Standard
is the referee document. The original Standard can be obtained online at
http://www.opengroup.org/unix/online.html .
.PP
Any typographical or formatting errors that appear
in this page are most likely
to have been introduced during the conversion of the source files to
man page format. To report such errors, see
https://www.kernel.org/doc/man-pages/reporting_bugs.html .
|