Administration program for SCCS commands.
sccs [ -r ] [ -dPath ] [ -pPath ] Command [ CommandFlags ] File ...
The sccs command is an administration program that incorporates the set of Source Code Control System (SCCS) commands into the operating system. Additionally, the sccs command can be used to assign or reassign file ownership (see the -r flag).
The sccs command activates a specified Command having the specified flags and arguments. Each file is normally placed in a directory named SCCS and named s.filename. The directory SCCS is assumed to exist relative to the working directory (unless the -p flag is used).
Two types of commands can be used
in the sccs command syntax sentence. The first type consists
of 14 sccs commands that can be entered at the prompt. The
second type, pseudo-commands, can be used only as part of the sccs
command syntax. There are 12 pseudo-commands, which perform the
following actions:
edit | Equivalent to the get -e command. |
delget | Performs a delta command on the named
files and then gets new versions. The new versions of the files have
expanded identification keywords and are not editable.
|
deledit | Equivalent to the delget pseudo-command, except that the get portion of the sentence includes the -e flag. The deledit pseudo-command is useful for creating a checkpoint in your current editing session. |
create | Creates an SCCS file, copying the initial contents from a file of the
same name. If the file is successfully created, the original file is
renamed with a comma on the front. You do not have to move or remove
the original file as with the admin
command.
Accepts the same flags as the admin command. The -i flag is implied. |
fix | Removes a named delta, but leaves a copy of the delta with changes intact. This pseudo-command is useful for fixing small compiler errors. This pseudo-command does not keep a record of changes made to the file. |
clean | Removes all files from the current directory or from the designated directory that can be recreated from SCCS files. Does not remove files that are in the process of being edited. |
unedit | Equivalent to the unget command. Any changes made since the get command was used are lost. |
info | Lists all files being edited. |
check | Prints all files being edited. Returns a nonzero exit status if a file is being edited. The check program can be used in a makefile to ensure that files are complete before a version is installed. Check the return code before performing the install. |
tell | Lists all files being edited, with a new line after each entry, on standard output. |
diffs | Shows the difference between the current version of the program you are editing and the previous deltas. |
print (filename(s)) | Prints verbose information about the named files.
If the PROJECTDIR environment variable is set, its value determines the working directory. If this value begins with a / (slash), it is used directly. Otherwise, the value is interpreted as a user name whose home directory is examined for a subdirectory named src or source. If found, that subdirectory is used as the working directory. |
This command returns the following
exit values:
0 | Successful completion. |
>0 | An error occurred. |
sccs get -e file.c ex file.c sccs delta file.c
sccs -p/usr/src/sccs/ get cc.c
sccs get /usr/src/sccs/s.cc.c
sccs info -b
/usr/bin/sccs | Contains the sccs command, which is the administration program for the SCCS commands. |
The admin command, cdc command, comb command, delta command, diff command, get command, prs command, rmdel command, sact command, sccsdiff command, sccshelp command, unget command, val command, vc command, what command.
The sccsfile file format.
List of SCCS Commands, Source Code Control System (SCCS) Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.