⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin.1

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 1
字号:
.\" SCCSID: @(#)admin.1	8.1	9/11/90.tr ~.nr f 0.bd S B 3.de SP.if n .ul\%[\fB\-\\$1\fR\\c.if n .ul 0\\$2\\$3...de SF.if n .ul\%[\fB\-\\$1\fR].if n .ul 0...de ZZ\fB.\|.\|.\fR...de AR.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 5.TP 15\fB\-\\$1\\fR\\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.nr f 1...de C1.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 5.TP 15\\$1\\$2 \\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.nr f 1...de A1.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 5.TP 15\fB\-\\$1\fR[\fI\\$2\fR]\\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.nr f 1...de A2.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 5.TP 15\fB\-\\$1\fI\\$2\fR\\$3 \\$4 \\$5 \\$6 \\$7 \\$8 \\$9.nr f 1...ds M)  \fI\s-1MR\s+1\fR.ds R)  \fI\s-1RELEASE NUMBER\s+1\fR.ds S)  \s-1SCCS\s+1.ds I)  \s-1SID\s+1.de F1.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 13.TP 7\fB\\$1\fI\\$2\fR\\$3.nr f 1...de F2.if \\nf \{ \.    RE.    nr f 0 \}.PP.RS 13.TP 7\fB\\$1[\fI\\$2\fR]\\$3.nr f 1...TH admin 1.SH Nameadmin \- SCCS file administrator.SH Syntax.B admin[\fB\-n\fR] [\fB\-i\fR[\fIname\fR]\|] [\fB\-r\fIrel\fR\|] [\fB\-t\fR[\fIname\fR]\|] [\fB\-f\fIflag\fR\|[\fIflag-val\fR\|]\|] [\fB\-d\fIflag\fR\|[\fIflag-val\fR\|]\|] [\fB\-a\fIlogin\fR] [\fB\-e\fIlogin\fR] [\fB\-m\fR[\fIlist\fR\|]\|] [\fB\-y\fR[\fIcomment\fR\|]\|] [\fB\-h\fR] [\fB\-z\fR] \fIfiles\fR.SH Description.NXB "admin command (sccs)".NXB "SCCS file" "creating".NXB "SCCS file" "changing parameters".NXA "admin command (sccs)" "delta command (sccs)".NXA "admin command (sccs)" "val command (sccs)".NXA "admin command (sccs)" "vc command (sccs)"The .PN admincommand is used to create new \*(S) filesand to change parameters of existing ones.Arguments to.PN admin ,which may appear in any order,consist of keyletter arguments,which begin with \fB\-\fR,and named files(note that SCCS file names must begin with the characters \fBs.\fR).If a named file does not exist,it is created,and its parameters are initialized according tothe specified keyletter arguments.Parameters not initialized by a keyletter argumentare assigned a default value.If a named file does exist,parameters corresponding to specified keyletter argumentsare changed,and other parameters are left as is..PPIf a directory is named,.PN adminbehaves as though each file in the directory werespecified as a named file,except that non-\*(S) files(last component of the path name does not begin with \fBs.\fR)and unreadable filesare ignored.If a name of \fB\-\fR is given, the standard input is read;each line of the standard input is taken to be the name of an \*(S) fileto be processed.Again, non-\*(S) files and unreadable files are ignored..SH Options.NXR "admin command (sccs)" "options"Each keyletter argument is explained as though onlyone named file is to be processed,because the effects of the argumentsapply independently toeach named file.  The list of arguments is as follows:.AR n Thiskeyletter indicates that a new \*(S) file is to be created..A1 i name The\fIname\fR of a file from which the text for a new \*(S) file is to be taken.The text constitutes the first delta of the file(see the .B \-rkeyletter for the delta numbering scheme)..spIf the.B ikeyletter is used,but the file name is omitted,the text is obtained by reading the standard inputuntil an end-of-file is encountered.If this keyletter is omitted,then the \*(S) file is created empty..spOnly one \*(S) file can be createdby an.PN admin command in which the.B ikeyletter is supplied.Using a single.PN admin commandto create two or more \*(S) files requires that they be createdempty(no.B \-ikeyletter).Note that the.B \-ikeyletter implies the.B \-nkeyletter..A2 r rel The release into which the initial delta is inserted.This keyletter may be used only if the.B \-ikeyletter is also used.If the.B \-rkeyletter is not used,the initial delta is inserted into release 1.The level of the initial delta is always 1.By default, initial deltas are named 1.1..A1 t name The\fIname\fR of a file from which descriptive text for the \*(S) fileis to be taken.If the.B \-tkeyletter is usedand.PN admin is creating a new \*(S) file(the.B \-nand/or.B \-ikeyletters are also used), the descriptive text file namemust alsobe supplied..spIn the case of existing \*(S) files:(1) a.B \-tkeyletter without a file name causes removal of descriptive text(if any) currently in the \*(S) file; and (2) a.B \-tkeyletter with a file name causes text (if any) in thenamed file to replacethe descriptive text (if any) currently in the \*(S) file..A2 f flag Thiskeyletter specifies a \fIflag\fR, and, possibly, a value for the \fIflag\fR, tobe placed in the \*(S) file.Several.B fkeyletters can be supplied on a single.PN admin command line.The allowable \fIflag\fRs and their values are:.RS 20.F1 b \& Allowsuse ofthe.B \-bkeyletter on a.MS get 1command to create branch deltas..F1 c ceil Thehighest release(``ceiling''),a positive number no higher than 9999, which may beretrieved by a.MS get 1command for editing.The default value for an unspecified.B cflag is 9999..F1 f floor Thelowest release(``floor''),a positive number greater than 0 but less than 9999,which may be retrieved by a.MS get 1command for editing.The default value for an unspecified.B fflag is 1..F1 d \s-1SID\s0 Thedefault delta number(\*(I)) to be used by a.MS get 1command..F1 i \& Causesthe "No id keywords (ge6)" message issued by.MS get 1or.MS delta 1to be treated as a fatal error.In the absence of this flag, the message is only a warning.The message is issued if no\*(S) identification keywordsare foundin the text retrieved or stored in the \*(S) file.For further information, see .MS get 1 ..F1 j \& Allowsconcurrentget(1)commands for editingon the same \*(I) of an \*(S) file.This allows multiple concurrent updates to the sameversion of the \*(S) file..F1 l list A\fIlist\fR of releases to which deltas can no longer be made.RB ( "get \-e"against one of these ``locked'' releases fails).The \fIlist\fR has the following syntax:.F1 \& \& <list>::= <range> \(or <list> , <range>.br<range>~::=	\*(R) \(or \fBa\fR.F1 \& \& Thecharacter \fBa\fR in the \fIlist\fR is equivalent to specifying.I "all releases\^"for the named \*(S) file..F1 n \& Causes.MS delta 1to create a null deltain each of those releases (if any) being skipped when a delta is madein a newrelease.  For example, in making delta 5.1 after delta 2.7, releases 3 and 4are skipped.These null deltas serve as anchor points, so that branch deltascan later be created from them.The absence of this flag causes skipped releases to benonexistent in the \*(S) file,preventing branch deltas from being created from them in the future..F1 q text Userdefinable text substituted for all occurrencesof the %\&Q% keyword in \*(S) file text retrieved byget(1)..F1 m mod \fIMod\|\fRulename of the \*(S) filesubstituted for all occurrences of the %\&M% keyword in \*(S) filetex retrieved by .MS get 1 .If the.B mflag is not specified, the valueassigned is the name of the \*(S) file with the leading\fBs.\fR removed..F1 t type \fIType\fRof module in the \*(S) file substituted for all occurrences of%\&Y% keyword in \*(S) file text retrieved by get(1)..F2 v pgm Causes.MS delta 1to prompt for modification request (\*(M)) numbers as thereason for creating a delta.The optional value specifies the name of an \*(M) number validitychecking program.  For further information, see .MS delta 1 .(If this flag is set when creating anSCCS file, the.B mkeyletter must also be used even if its value is null)..RE.A2 d flag Causesdeletion of the specified \fIflag\fR from an \*(S) file.The.B \-dkeylettercan be specified only when processing existing\*(S) files.Several.B \-dkeyletters can be supplied on a single.PN admin command.See the.B \-fkeyletter for allowable \fIflag\fR names..A2 l list A.I listof releases to be unlocked.See the.B \-fkeyletter for a description of the.B lflag and the syntax of a \fIlist\fR..A2 a login A\fIlogin\fR name or numerical \s-1ULTRIX\s+1 System group \s-1ID\s+1to be added to the list of users whichcan make deltas (changes) to the \*(S) file.A group \s-1ID\s+1 is equivalent to specifying all\fIlogin\fR names common to that group \s-1ID\s+1.Several.B akeyletters can be usedon a single.PN admin command line.As many \fIlogin\fRs or numerical group \s-1ID\s+1s as desired can be on the list simultaneously.If the list of users is empty,then anyone can add deltas..A2 e login A\fIlogin\fR name or numerical group \s-1ID\s+1 to be erased from the list of usersallowed to make deltas (changes) to the \*(S) file.Specifying a group \s-1ID\s+1 is equivalent to specifying all\fIlogin\fR names common to that group \s-1ID\s+1.Several.B ekeyletters can be used on a single.PN admincommand line..A1 y comment The.I comment\^text is insertedinto the \*(S) file as a commentfor the initial delta in a manner identical to thatof.MS delta 1 .Omission of the \fB\-y\fR keyletter results in a defaultcomment line being inserted in the form:.sp \n(PDudate and time created.IR \s-1YY\s+1 / \s-1MM\s+1 / \s-1DD\s+1.IR \s-1HH\s+1 : \s-1MM\s+1 : \s-1SS\s+1by.I login\^.sp \n(PDuThe .B \-ykeyletteris valid only if the.B \-ior.B \-nkeyletters arespecified.  .A1 m mrlist Thelist of modification requests (\*(M)) numbers is inserted into the \*(S) fileas the reason for creating the initial delta in a manneridentical to.MS delta 1 .The.B vflag must be set and the \*(M) numbers are validated if the.B vflag has a value (the name of an \*(M) number validation program).Diagnostics occur if the.B vflag is not set or \*(M) validation fails..AR h Causes.PN admin  to check the structure of the \*(S) fileand to compare a newlycomputed check-sum (the sum of all the characters in the \*(S) fileexcept those in the first line) with the check-sum that is storedin the first line of the \*(S) file.Appropriate error diagnostics are produced.For further information, see .MS sccsfile 5 ..C1 \& Thiskeyletter inhibits writing on the file, so that itnullifies the effect of any other keyletters supplied.  It is, therefore, only meaningful when processing existing files..AR z The\*(S) file check-sum is recomputed and stored in the first lineof the \*(S) file(see.BR \-h ,above)..C1 \& Notethat use of this keyletter on a truly corrupted filemay prevent future detection of the corruption..i0.SH DiagnosticsUse sccshelp(1) for explanations..tr ~~.SH RestrictionsWhen creating a new \*(S) file with the \fB-n\fR or \fB-i\fR options,the g-file path name cannot be of the form \fBs.\fP\fIfile-name\fP..SH FilesThe last component ofall \*(S) file names are of the form \fBs.\fP\fIfile-name\fP.New \*(S) files are given mode 444.For further information, see .MS chmod 1 .Write permissionin the pertinent directory isrequired to create a file.All writing done by.PN admin is to a temporary x-file,called \fBx.\fP\fIfile-name\fP,created with mode 444 if the.PN admin command is creating a new \*(S) file, or with the same modeas the \*(S) file if it exists.For further information, see .MS get 1 .After successful execution of.PN admin ,the \*(S) file is removed if it exists, and the x-fileis renamed with the name of the \*(S) file.This ensures that changes are made to the \*(S) file onlyif no errors occurred..PPThe mode of the \*(S) files prevents any modificationat all except by \*(S) commands..PPIf it should be necessary to patch an \*(S) file for any reason,the mode may be changed to 644 by the owner,allowing use of.MS ed 1 ..NTCare must be taken that correct commands are used whenpatching an SCCS file, otherwise further corruption of thefile can occur..NEThe edited file should.I always\^be processed by an.PN admin \-\fBh\fRto check for corruption, followed by an.PN admin \-\fBz\fRto generate a proper check-sum.Another.PN admin \-\fBh\fRis recommended to ensure the \*(S) file is valid..PPThe .PN admin  command also makes use ofa transient lock file(called \fBz.\fP\fIfile-name\fP),which is used to prevent simultaneous updates to the \*(S) file by different users.For further information, see .MS get 1 ..SH See Alsodelta(1), ed(1), get(1), help(1), prs(1), sccs(1), what(1), sccsfile(5).br\fIGuide to the Source Code Control System\fP.NXE "SCCS file" "creating".NXE "SCCS file" "changing parameters".NXE "admin command (sccs)"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -