United States-English |
|
|
HP-UX Reference > Ssccs(1)HP-UX 11i Version 3: February 2007 |
|
NAMEsccs — front-end utility program for SCCS commands DESCRIPTIONThe 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 subdirectory 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:
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. OptionsThe 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:
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 INFLUENCESEnvironment VariablesIf 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 subdirectory 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). EXAMPLESTo 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) $@ RETURN VALUEA successful completion returns 0. On error, sccs exists with a value from <sysexits.h> or the exit value from the command that was invoked. The only exception is the check pseudo command which returns a non-zero exit status if a file is being edited. SEE ALSOadmin(1), cdc(1), comb(1), delta(1), get(1), prs(1), rmdel(1), sact(1), sccsdiff(1), sccshelp(1), unget(1), val(1), vc(1), what(1), sccsfile(4). |
Printable version | ||
|