sccs(1) sccs(1)NAME sccs - performs SCCS subsystem commands SYNOPSIS sccs command [flags] [args] [-dpath] [-ppath] [-r] ARGUMENTS args Specifies the arguments to command. -dpath Gives a root directory, path, for the SCCS files. The default is the current directory. flags Specifies the data to be interpreted by the sccs program, or the data to be passed to the actual SCCS program. Any flag options to be interpreted by the sccs program must appear before command; any flags to be passed to the actual SCCS program must come after command. These flags are specific to the command and are discussed in the documentation for that command. -ppath Defines the pathname of the directory, path, in which the SCCS files will be found; SCCS is the default. This option differs from the -d option in that the -d option is prefixed to the entire pathname and the -p argument is inserted before the final component of the pathname. For example: sccs -d /x -py get a/b will convert to get /x/a/y/s.b The intent here is to create aliases such as: alias syssccs sccs -d /usr/src which will be used as: syssccs get cmd/who.c Also, if the environment variable PROJECT is set, its value is used to determine the -d option. If it begins with a slash, it is taken directly; otherwise, the home directory of a user of that name is examined for a subdirectory src or source. If such a directory is found, it is used. -r Runs sccs as the real user rather than as whatever effective user sccs has set user ID to. January 1992 1
sccs(1) sccs(1)DESCRIPTION sccs is a front end to the SCCS programs that helps them mesh more cleanly with the rest of A/UX. It also includes the capability to run set-user-id to another user to provide additional protection. Basically, sccs runs the given command with the specified flags and args. Each argument is normally modified to be prefixed with SCCS/s. Thus, you may supply get, delta, or info in place of command. Besides the usual SCCS commands, several pseudo-commands can be issued, which are: Cedit Equivalent to get -e. delget Perform a delta on the named files and then get new versions. The new versions will have ID keywords expanded, and will not be editable. The -m, -p, -r, -s, , and -y options will be passed to delta, and the -b, -c, -e, -i, -k, -l, -s, and -x options will be passed to get. deledit Equivalent to delget, except that the get phase includes the -e option. This option is useful for making a ``checkpoint'' of your current editing phase. The same options will be passed to delta as described above, and all the options listed for get above except -eand-k are passed to edit. create 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 files are renamed with a comma on the front. These should be removed when you are convinced that the SCCS files have been created successfully. fix Must be followed by a -r option. This command essentially removes the named delta, but leaves you with a copy of the delta with the changes that were in it. It is useful for fixing small compiler bugs, etc. Since it doesn't leave audit trails, it should be used carefully. clean This routine removes everything from the current directory that can be recreated from SCCS files. It will not remove any files being edited. If the -b option is given, branches are ignored in the determination of whether they are being edited; this is dangerous if you are keeping the branches in the same directory. 2 January 1992
sccs(1) sccs(1)unedit This is the opposite of an edit or a get -e. It should be used with extreme caution, since any changes you made since the get will be irretrievably lost. info Give a listing of all files being edited. If the -b option is given, branches (i.e., SID's with two or fewer components) are ignored. If the -u option is given (with an optional argument) then only files being edited by you (or the named user) are listed. check Like info, except that nothing is printed if nothing is being edited, and a nonzero exit status is 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. tell Give a newline-separated list of the files being edited on the standard output. Takes the -b and -u options like info and check. diffs Give a diff listing between the current version of the program(s) you have out for editing and the versions in SCCS format. The -r, -c, -i, -x, and -t options are passed to get; the -l, -s, -e, -f, -h, and -b options are passed to diff. The -C option is passed to diff as -c. prs This command prints out verbose information about the named files. Certain commands (such as admin) 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. EXAMPLES 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 or January 1992 3
sccs(1) sccs(1)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 you: 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) $@ LIMITATIONS It should be able to take directory arguments on pseudo- commands like the SCCS commands do. FILES /usr/ucb/sccs Executable file SEE ALSO admin(1), cdc(1), comb(1), delta(1), get(1), help(1), prs(1), rmdel(1), sact(1), sccsdiff(1), unget(1), val(1), what(1) sccsfile(4) in A/UX Programmer's Reference ``SCCS Reference'' in A/UX Programming Languages and Tools, Volume 2 4 January 1992