sccs.1 (2010 09)
s
sccs(1) sccs(1)
NAME
sccs - front-end utility program for SCCS commands
SYNOPSIS
sccs [-r][-d rootpath ][
-p dirpath ] command [options ][file]...
DESCRIPTION
The
sccs command is a straightforward front end to the various programs comprising the Source Code
Control System. It includes the capability of running set-user-id to another user to allow shared access to
the SCCS files. sccs reduces the need to explicitly reference the SCCS filenames. The SCCS filenames
are generated by prepending the string SCCS/s. to the working files specified. The default SCCS sub-
directory name can be overridden with the
-p
dirpath option.
The command supplied to the
sccs command can either be an SCCS program or a pseudo command.
The SCCS programs that sscs handles include admin
, cdc, comb, delta, get, help, prs, rmdel,
sact, unget, val, what
and sccsdiff. The pseudo commands are:
check Prints a list of all files being edited. Returns a non-zero exit status if a file is being
edited. The intent is to allow an ’install’ entry in a makefile to verify that everything is
included in the SCCS file before a version is installed. See the
info pseudo command
for a description of the
-b, -u
user and -U options.
clean Removes all files from the current directory or the named directory that can be
recreated from the SCCS files. Does not remove files that are in the process of being
edited. If -b is given, branches (i.e. SID’s with three or more components) are ignored
in determining which files are being edited. Therefore, any edits on branches can be
lost.
create Creates the initial SCCS file, taking the contents from file. Any options to
admin are
accepted. If the files are created successfully, the original files are renamed with a
,
(comma) on the front. Read-only copies are retrieved with get. The renamed files
should be removed after you have verified that the SCCS files have been created suc-
cessfully.
delget Runs delta on the named files and then get the new versions. The new versions of
the files have expanded identification keywords, and cannot be edited. The [-mprsy]
options are passed to delta, and the [-bceiklsx] options are passed to get
.
deledit Equivalent to delget, except that the get phase includes the -e option.
diffs Gives a diff listing between the current version of the files being edited and the ver-
sions in SCCS format. The [-rcixt] options are passed to get. The [
-lsefhb]
options are passed to
diff. The -C option is passed to diff as -c.
edit Equivalent to get -e.
enter Equivalent to create, except get is omitted. This pseudo command is useful when
you want to run the edit command immediately after creating the SCCS file.
fix Removes a named delta, but leaves a copy of the delta in the current directory. The
-r SID option is required and must point to a leaf in the source tree. Since a record of
the changes is not preserved, fix should be used carefully.
info Lists all the files being edited. The -b option ignores branches in determining which
files are being edited. The -u user option lists only the files being edited by user . The
-U option is equivalent to -u current_user.
print Prints information about named files. Equivalent to prs -a followed by get -p
-m -s.
tell Lists all the files being edited, with a newline after each entry. See the info section
for a description of the -b, -u user and -U options.
unedit Equivalent to unget. Any changes made since the last get are lost. Use with cau-
tion.
Certain commands,
admin, cdc, check, clean, diffs, info, rmdel, sccsdiff, and tell cannot
use the set-user-id feature, as this would allow anyone to change the authorizations. These commands
are always run as the real user.
HP-UX 11i Version 3: September 2010 − 1 − Hewlett-Packard Company 1