|SCCS(1)||General Commands Manual||SCCS(1)|
sccs — front end
Sccs is a front end to the
SCCS programs that helps them mesh more cleanly with
the rest of UNIX. It also includes the capability to run “set user
id” to another user to provide additional protection (but see the
section entitled BUGS).
sccs runs the command with the
specified flags and args. Each
argument is normally modified to be prepended with
Flags to be interpreted by the
program must be before the command argument. Flags to
be passed to the actual
SCCS program must come after
the command 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 issued. These are:
- Equivalent to “
- 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
-yflags will be passed to
delta, and the
-xflags will be passed to get.
- Equivalent to
delgetexcept that the
getphase includes the
-eflag. This option is useful for making a checkpoint of your current editing phase. The same flags will be passed to delta as described above, and all the flags listed for
-kare passed to
- Creates an
SCCSfile , taking the initial contents from the file of the same name. Any flags to
adminare 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
SCCSfiles have been created successfully.
- Must be followed by a
-rflag. 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.
- This routine removes everything from the current directory that can be
recreated from SCCS files. It will not remove any files being edited. If
-bflag 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.
- This is the opposite of an
editor a “
get -e”. It should be used with extreme caution, since any changes you made since the get will be irretrievably lost.
- Gives a listing of all files being edited. If the
-bflag is given, branches (i.e.,
SID´s with two or fewer components) are ignored. If the
-uflag is given (with an optional argument) then only files being edited by you (or the named user) are listed.
infoexcept 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 install entry in a makefile to insure that everything is included into the
SCCSfile before a version is installed.
- Gives a newline-separated list of the files being edited on the standard
output. Takes the
- Gives a
difflisting between the current version of the program(s) you have out for editing and the versions in
-tflags are passed to
-boptions are passed to
-yoptions are passed to
diffbut these options are (usually) specific to GNU diff, and so may not be supported on systems other than GNU. The
-Cflag is passed to
- This command prints out verbose information about the named files.
Certain commands (such as
admin) cannot be
set user id” by all users, since
this would allow anyone to change the authorizations. These commands are
always run as the real user.
- Returns a zero exit value (for the GNU version only). No other operation
is performed. This flag is used by the test suite to determine if it needs
to use the
--prefixflag in order to find the correct subprograms (non-GNU versions of sccs have the full pathnames for the subprograms hard-coded). In this way, the CSSC test suite can be compiled ready for installation in a particular directory, but the test suite can still be run before the suite has been installed in its final position. This option is supported only by the GNU version of
- Uses foo as the prefix for SCCS sub-commands. The
default prefix is compiled into the program and is usually
“/usr/sccs”. You can discover the prefix setting with the
-Vflag. This prefix is used without a final slash being appended, so values like “/usr/local/bin/cssc-” can be used. This option is disallowed if the program is installed setuid, and it is supported only by the GNU version of
sccs. This option is not equivalent to the
- Show version information; synonymous with the
sccsas the real user rather than as whatever effective user
set user id” to.
- Specifies a root directory for the
SCCSfiles. The default is the current directory. If environment variable
PROJECTDIRis set, it will be used to determine the
- Defines the pathname of the directory in which the
SCCSfiles will be found; “
SCCS” is the default. The
-pflag differs from the
-dflag in that the
-dargument is prepended to the entire pathname and the
-pargument 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”. Please note that the
-pflag is (very) different in purpose from the
- This flag causes the program to emit a debugging trace on stdout. This flag may be disabled at compile time.
- Shows the version information for the
sccsprogram, and the subcommand prefix being used. This option is supported only by the GNU version of
To get a file for editing, edit it, and produce a new delta:
sccs get -e file.c
sccs delta file.c
To get a file from another directory:
sccs -p/usr/src/sccs/s. get cc.c
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>
sccs get $(REL) $@
This version of
sccs is maintained by
James Youngman, <firstname.lastname@example.org>.
The PROJECTDIR environment variable is checked by the
-dflag. 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.
There are many error messages, mostly brief but fairly obvious. If all goes acording to plan, the program's exit status is zero. Otherwise, it will be one of the following values:-
- No error; everything proceeded according to plan.
- Command line usage error
- Could not exec program
- Internal software error. This should not happen.
- System error (e.g., can't fork)
- Temporary failure; retry later. This error is returned when the system runs out of memory.
- Permission denied. This error occurs when the program has been installed setuid, but SCCSDIR was not configured in at compile time. This can also happen if something goes wrong when the program tries to drop its setuid or setgid privileges. When a program exits due to a fatal signal, the shell usually adds 128 to the signal number and uses that as the return value. Some systems also produce values in this range if there was a problem with the dynamic linker.
what(1), sccs-admin(1), sccs-cdc(1), sccs-comb(1), sccs-delta(1), sccs-get(1), sccs-help(1), sccs-prs(1), sccs-prt(1), sccs-rmchg(1), sccs-rmdel(1), sccs-sact(1), sccsdiff(1), sccs-unget(1), sccs-val(1), make(1), rcsintro(1), cvs(1), sccsfile(5).
Eric Allman, An Introduction to the Source Code Control System.
James Youngman, CSSC: Compatibly Stupid Source Control.
Copyright © 1998
Free Software Foundation, Inc. All rights reserved.
Copyright © 1983, 1990, 1993
The Regents of the University of California. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- All advertising materials mentioning features or use of this software must
display the following acknowledgement:
This product includes software developed by the University of California, Berkeley and its contributors.
- Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
sccs command appeared in
This version of
sccs has been slightly
modified to support
GNU Autoconf, and several new
options (those beginning with two dashes and also
-V) and to make it somewhat more portable. The
program otherwise remains largely unchanged.
It should be able to take directory arguments on pseudo-commands
SCCS commands do.
Though this program is mostly derived from the original BSD code, the subprograms accompanying it in the CSSC suite (admin, get, delta and so on) are not the original AT&T code. Please do not count on these programs being secure.
Other known bugs are listed in the file BUGS, which accompanies GNU CSSC.
|June 3, 1998||GNU|