HP-UX Reference (11i v1 05/09) - 1 User Commands N-Z (vol 2)

s
sccs(1) sccs(1)
Options
The options supplied to the SCCS commands are documented in the corresponding SCCS man pages. The
options supplied to the pseudo commands are documented in the above section. All other options preceding
command are documented as follows:
-r Runs sccs as the real user rather than the effective user
sccs is set-user-id to.
-d rootpath Gives the pathname to be used as the root directory for the SCCS les. rootpath
defaults to the current directory. This flag takes precedence over the
PROJECTDIR
environment variable.
-p dirpath Specifies the pathname for the SCCS files. The default is the SCCS directory. dir-
path is appended to rootpath and is inserted before the final component of the path-
name.
The command
sccs -d /usr -p cmd get src/b
converts to get/usr/src/cmd/s.b
. This can be
used to create aliases. For example, the command
alias syssccs="sccs -p /usr/src/cmd"
makes syssccs an alias that can be used in commands like
syssccsgetb.
EXTERNAL INFLUENCES
Environment Variables
If the
PROJECTDIR environment variable is set, its value is used to determine the -d rootpath option
value for rootpath.If
PROJECTDIR begins with a / (slash), the value is used directly; otherwise, the value
is assume to be a login name and the home directory corresponding to login name is examined for a sub-
directory named src or source. If found, this directory path is used. Otherwise, the value is used as a
relative path name.
LC_CTYPE determines the interpretation of text within file as single- and/or multi-byte characters.
LC_MESSAGES determines the language in which messages are displayed.
If LC_CTYPE or LC_MESSAGES is not specified in the environment or is set to the empty string, the
value of LANG is used as a default for each unspecified or empty variable. If
LANG is not specified or is set
to the empty string, a default of "C" (see lang(5)) is used instead of
LANG
.
If any internationalization variable contains an invalid setting,
sccs behaves as if all internationalization
variables are set to "C". See environ(5).
International Code Set Support
Single-byte and multi-byte character code sets are supported.
EXAMPLES
To create a new SCCS file:
sccs create file
To get a file for editing, edit it, create a new delta and get file for editing:
sccs edit file.c
ex file.c
sccs deledit file.c
To get a file from another directory ( /usr/src/cmd/SCCS/s.cc.c
):
sccs -d /usr/src get cmd/cc.c
To make a delta of a large number of files in the current directory, enter:
sccs delta *.c
To get a list of files being edited that are not on branches, enter:
sccs info -b
To get a list of files being edited by you, enter:
sccs tell -u
In a makefile, to get source files from an SCCS file if it does not already exist, enter:
SRCS = <list of source files>
$ (SRCS) :
sccs get $(REL) $@
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1863