reset fieldwidth/precision for each new format
[unix-history] / usr / src / usr.bin / sccs / sccs.1
index 9bb70ca..1fb9726 100644 (file)
@@ -1,9 +1,13 @@
-.TH SCCS LOCAL
-.UC
+.\" Copyright (c) 1983 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)sccs.1      2.5 (Berkeley) %G%
+.\"
+.TH SCCS 1 ""
+.UC 5
 .SH NAME
 .SH NAME
-sccs \- front end for the
-.SM SCCS
-subsystem
+sccs \- front end for the \s-1SCCS\s0 subsystem
 .SH SYNOPSIS
 .B sccs
 [
 .SH SYNOPSIS
 .B sccs
 [
@@ -19,7 +23,7 @@ is a front end
 to the
 .SM SCCS
 programs
 to the
 .SM SCCS
 programs
-that help them mesh more cleanly
+that helps them mesh more cleanly
 with the rest of UNIX.
 It also includes the capability to run
 ``set user id'' to another user
 with the rest of UNIX.
 It also includes the capability to run
 ``set user id'' to another user
@@ -78,6 +82,18 @@ as described above,
 and all the flags listed for ``get''
 above except \-e and \-k
 are passed to ``edit''.
 and all the flags listed for ``get''
 above except \-e and \-k
 are passed to ``edit''.
+.IP create
+Creates an
+.SM SCCS
+file,
+taking the initial contents from the file of the same name.
+Any flags 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
+.SM SCCS
+files have been created successfully.
 .IP fix
 Must be followed by a
 .B \-r
 .IP fix
 Must be followed by a
 .B \-r
@@ -89,10 +105,15 @@ It is useful for fixing small compiler bugs, etc.
 Since it doesn't leave audit trails,
 it should be used carefully.
 .IP clean
 Since it doesn't leave audit trails,
 it should be used carefully.
 .IP clean
-Takes no arguments.
 This routine removes everything from the current directory
 that can be recreated from SCCS files.
 It will not remove any files being edited.
 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 \-b
+flag 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.
 .IP unedit
 This is the opposite of an ``edit''
 or a ``get \-e''.
 .IP unedit
 This is the opposite of an ``edit''
 or a ``get \-e''.
@@ -101,6 +122,19 @@ since any changes you made since the get
 will be irretrievably lost.
 .IP info
 Gives a listing of all files being edited.
 will be irretrievably lost.
 .IP info
 Gives a listing of all files being edited.
+If the
+.B \-b
+flag is given,
+branches (i.e.,
+\s-1SID\s0's with two or fewer components)
+are ignored.
+If the
+.B \-u
+flag is given
+(with an optional argument)
+then only files being edited by you
+(or the named user)
+are listed.
 .IP check
 Like ``info''
 except that nothing is printed if nothing is being edited,
 .IP check
 Like ``info''
 except that nothing is printed if nothing is being edited,
@@ -116,14 +150,46 @@ before a version is installed.
 Gives a newline-separated list
 of the files being edited
 on the standard output.
 Gives a newline-separated list
 of the files being edited
 on the standard output.
+Takes the
+.B \-b
+and
+.B \-u
+flags like 
+``info'' and ``check''.
 .IP diffs
 Gives a ``diff'' listing between the current version of the
 program(s) you have out for editing and the versions
 in
 .SM SCCS
 format.
 .IP diffs
 Gives a ``diff'' listing between the current version of the
 program(s) you have out for editing and the versions
 in
 .SM SCCS
 format.
-The arguments look exactly like the arguments to a get,
-which specify the version to diff against.
+The
+.B \-r,
+.B \-c,
+.B \-i,
+.B \-x,
+and
+.B \-t
+flags are passed to
+.I get\c
+; the
+.B \-l,
+.B \-s,
+.B \-e,
+.B \-f,
+.B \-h,
+and
+.B \-b
+options are passed to
+.I diff.
+The
+.B \-C
+flag is passed to
+.I diff
+as
+.B \-c.
+.IP print
+This command prints out verbose information
+about the named files.
 .PP
 The
 .B \-r
 .PP
 The
 .B \-r
@@ -158,13 +224,25 @@ and the
 argument is inserted before the final component of the
 pathname.
 For example,
 argument is inserted before the final component of the
 pathname.
 For example,
-``sccs -d/x -py get a/b''
+``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''.
 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
+.B \-d 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.
 .PP
 Certain commands (such as
 .IR admin )
 .PP
 Certain commands (such as
 .IR admin )
@@ -202,6 +280,14 @@ in the current directory:
 .BX
 sccs delta *.c
 .EX
 .BX
 sccs delta *.c
 .EX
+To get a list of files being edited that are not on branches:
+.BX
+sccs info \-b
+.EX
+To delta everything being edited by you:
+.BX
+sccs delta \`sccs tell \-u\`
+.EX
 In a makefile, to get source files
 from an
 .SM SCCS
 In a makefile, to get source files
 from an
 .SM SCCS
@@ -231,11 +317,3 @@ It should be able to take directory arguments on pseudo-commands
 like the
 .SM SCCS
 commands do.
 like the
 .SM SCCS
 commands do.
-.SH DISCLAIMER
-Since it is not yet clear
-what this program should do,
-it should not be considered
-a stable program product.
-Please send any
-comments & suggestions
-to csvax:eric.