sccs [−r] [−d path] [−p path] command [options...] [operands...]
command [options ... ] [operands ... ]
- −d path
- A pathname of a directory to be used as a root directory for the SCCS files. The default shall be the current directory. The −d option shall take precedence over the PROJECTDIR variable. See −p.
- −p path
- A pathname of a directory in which the SCCS files are located. The default shall be the SCCS directory.
The −p option differs from the −d option in that the −d option-argument shall be prefixed to the entire pathname and the −p option-argument shall be inserted before the final component of the pathname. For example:converts to:This allows the creation of aliases such as:which is used as:
sccs −d /x −p y get a/b
alias syssccs="sccs −d /usr/src"
syssccs get cmd/who.c
- Invoke command with the real user ID of the process, not any effective user ID that the sccs utility is set to. Certain commands (admin, check, clean, diffs, info, rmdel, and 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.
- An SCCS utility name or the name of one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section.
- An option or option-argument to be passed to command.
- An operand to be passed to command.
- Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1‐2008, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)
- If set to a non-empty string value, override the values of all the other internationalization variables.
- 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).
- Determine the location of message catalogs for the processing of LC_MESSAGES.
- Equivalent to 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.
- Remove everything from the current directory that can be recreated from SCCS files, but do not remove any files being edited. If the −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.
- Create an SCCS file, taking the initial contents from the file of the same name. Any options to 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.
- Perform a delta on the named files and then get new versions. The new versions shall have ID keywords expanded and shall not be editable. Any −m, −p, −r, −s, and −y options shall be passed to delta, and any −b, −c, −e, −i, −k, −l, −s, and −x options shall be passed to get.
- Equivalent to delget, except that the get phase shall include the −e option. This option is useful for making a checkpoint of the current editing phase. The same options shall be passed to delta as described above, and all the options listed for get above except −e shall be passed to edit.
- Write a difference listing between the current version of the files checked out for editing and the versions in SCCS format. Any −r, −c, −i, −x, and −t options shall be passed to get; any −l, −s, −e, −f, −h, and −b options shall be passed to diff. A −C option shall be passed to diff as −c.
- Equivalent to get −e.
- 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 −r SID option. Since fix does not leave audit trails, it should be used carefully.
- Write a listing of all files being edited. If the −b option is given, branches (that is, SIDs with two or fewer components) shall be ignored. If a −u user option is given, then only files being edited by the named user shall be listed. A −U option shall be equivalent to −u<current user>.
- Write out verbose information about the named files, equivalent to sccs prs.
- Write a <newline>-separated list of the files being edited to standard output. Takes the −b, −u, and −U options like info and check.
- This is the opposite of an edit or a get −e. It should be used with caution, since any changes made since the get are lost.
- Successful completion.
- An error occurred.
- To get a file for editing, edit it and produce a new delta:
sccs get −e file.c ex file.c sccs delta file.c
- To get a file from another directory:
sccs −p /usr/src/sccs/s. get cc.c
sccs get /usr/src/sccs/s.cc.c
- To make a delta of a large number of files in the current directory:
sccs delta *.c
- To get a list of files being edited that are not on branches:
sccs info −b
- To delta everything being edited by the current user:
sccs delta $(sccs tell −U)
- In a makefile, to get source files from an SCCS file if it does not already exist:
SRCS = <list of source files> $(SRCS): sccs get $(REL) $@