SCCS(1) BSD Reference Manual SCCS(1) NNAAMMEE ssccccss - front end for the SCCS subsystem SSYYNNOOPPSSIISS ssccccss [--rr] [--dd _p_a_t_h] [--pp _p_a_t_h] _c_o_m_m_a_n_d [flags] [_f_i_l_e _._._.] DDEESSCCRRIIPPTTIIOONN SSccccss is a front end to the SCCS programs that helps them mesh more clean- ly with the rest of UNIX. It also includes the capability to run ``set user id'' to another user to provide additional protection. Basically, ssccccss runs the command with the specified _f_l_a_g_s and _a_r_g_s. Each argument is normally modified to be prepended with ``SCCS/s.''. Flags to be interpreted by the ssccccss program must be before the _c_o_m_m_a_n_d argument. Flags to be passed to the actual SCCS program must come after the _c_o_m_m_a_n_d argument. These flags are specific to the command and are discussed in the documentation for that command. Besides the usual SCCS commands, several ``pseudo-commands'' can be is- sued. These are: eeddiitt Equivalent to ``get -e''. ddeellggeett 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 --mm, --pp, --rr, --ss, and --yy flags will be passed to ddeellttaa, and the --bb,, --cc, --ee, --ii, --kk, --ll, --ss, and --xx flags will be passed to get. ddeelleeddiitt Equivalent to ddeellggeett except that the ggeett phase includes the --ee flag. This option is useful for making a _c_h_e_c_k_p_o_i_n_t of your current editing phase. The same flags will be passed to delta as described above, and all the flags listed for above except --ee and --kk are passed to eeddiitt. ccrreeaattee Creates an SCCS file , taking the initial contents from the file of the same name. Any flags to aaddmmiinn are accepted. If the cre- ation 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. ffiixx Must be followed by a --rr flag. 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 com- piler bugs, etc. Since it doesn't leave audit trails, it should be used carefully. cclleeaann 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 --bb flag is given, branches are ignored in the determination of whether they are being edited; this is dan- gerous if you are keeping the branches in the same directory. uunneeddiitt This is the opposite of an eeddiitt or a ``get -e''. It should be used with extreme caution, since any changes you made since the get will be irretrievably lost. iinnffoo Gives a listing of all files being edited. If the --bb flag is given, branches (i.e., SID's with two or fewer components) are ignored. If the --uu flag is given (with an optional argument) then only files being edited by you (or the named user) are listed. cchheecckk Like iinnffoo except that nothing is printed if nothing is being edited, and a non-zero exit status is returned if anything is being edited. The intent is to have this included in an _i_n_s_t_a_l_l entry in a makefile to insure that everything is included into the SCCS file before a version is installed. tteellll Gives a newline-separated list of the files being edited on the standard output. Takes the --bb and --uu flags like iinnffoo and cchheecckk. ddiiffffss Gives a ddiiffff listing between the current version of the pro- gram(s) you have out for editing and the versions in SCCS for- mat. The --rr, --cc, --ii, --xx, and --tt flags are passed to ggeett; the --ll, --ss, --ee, --ff, --hh, and --bb options are passed to ddiiffff. The --CC flag is passed to ddiiffff as --cc. pprriinntt This command prints out verbose information about the named files. --rr Runs ssccccss as the real user rather than as whatever effective us- er ssccccss is ``set user id'' to. --dd Specifies a root directory for the SCCS files. The default is the current directory. If environment variable PROJECT is set, it will be used to determine the --dd flag. --pp Defines the pathname of the directory in which the SCCS files will be found; ``SCCS'' is the default. The --pp flag differs from the --dd flag in that the --dd argument is prepended to the en- tire pathname and the --pp 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''. Certain commands (such as aaddmmiinn) cannot be run ``set user id'' by all users, since this would allow anyone to change the autho- rizations. These commands are always run as the real user. EEXXAAMMPPLLEESS 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 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 al- ready exist: SRCS = <list of source files> $(SRCS): sccs get $(REL) $@ EENNVVIIRROONNMMEENNTT PROJECT The PROJECT environment variable is checked by the --dd flag. 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. SSEEEE AALLSSOO what(1) admin(SCCS), chghist(SCCS), comb(SCCS), delta(SCCS), get(SCCS), help(SCCS), prt(SCCS), rmdel(SCCS), sccsdiff(SCCS), Eric Allman, _A_n _I_n_t_r_o_d_u_c_t_i_o_n _t_o _t_h_e _S_o_u_r_c_e _C_o_d_e _C_o_n_t_r_o_l _S_y_s_t_e_m. HHIISSTTOORRYY The ssccccss command appeared in 4.3BSD. BBUUGGSS It should be able to take directory arguments on pseudo-commands like the SCCS commands do. 4.2 Berkeley Distribution June 6, 1993 3