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

📄 ch18_06.htm

📁 unix基础教程
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<html><head><title>Alphabetical Summary of SCCS Commands (UNIX in a Nutshell: System V Edition)</title><link rel="stylesheet" type="text/css" href="../style/style1.css" /><meta name="DC.Creator" content="Arnold Robbins" /><meta name="DC.Format" content="text/xml" scheme="MIME" /><meta name="DC.Language" content="en-US" /><meta name="DC.Publisher" content="O'Reilly &amp; Associates, Inc." /><meta name="DC.Source" scheme="ISBN" content="1-56592-427-4" /><meta name="DC.Subject.Keyword" content="stuff" /><meta name="DC.Title" content="UNIX in a Nutshell: System V Edition" /><meta name="DC.Type" content="Text.Monograph" /></head><body bgcolor="#ffffff"><img src="gifs/smbanner.gif" usemap="#banner-map" border="0" alt="Book Home" /><map name="banner-map"><area shape="rect" coords="1,-2,616,66" href="index.htm" alt="Book Title" /><area shape="rect" coords="629,-11,726,25" href="jobjects/fsearch.htm" alt="Search this book" /></map><div class="navbar"><table width="684" border="0"><tr><td align="left" valign="top" width="228"><a href="ch18_05.htm"><img src="../gifs/txtpreva.gif" alt="Previous" border="0" /></a></td><td align="center" valign="top" width="228" /><td align="right" valign="top" width="228"><a href="ch18_07.htm"><img src="../gifs/txtnexta.gif" alt="Next" border="0" /></a></td></tr></table></div><h2 class="sect1">18.6. Alphabetical Summary of SCCS Commands</h2><p><a name="ch18comm3" /><a name="ch18comm4" />File arguments to SCCS commands can be either filenames or directory names.  Naming a directory processes all the filesin that directory, with nonapplicable and unreadablefiles ignored.(Unreadable files produce an error message.)If in place of a file argument a dash (&#8211;) is entered, the command reads the names of files to process from standard input,one on each line.</p><p>Use the form<em class="emphasis">yy</em>[<em class="emphasis">mm</em>[<em class="emphasis">dd</em>[<em class="emphasis">hh</em>[<em class="emphasis">mm</em>[<em class="emphasis">ss</em>]]]]]for commands that accept times and dates.Values left out default to the highest valid value.Furthermore, Solaris treats years from 69 to 99 as being in the 20thcentury, while years between zero and 68 are in the 21st.</p><p>On Solaris, all SCCS commands reside in <tt class="literal">/usr/ccs/bin</tt>.To use these commands, be sure to add this directory to your PATH environmentvariable.</p><table border="1" cellpadding="5"><tr><td valign="top"><a name="admin">admin</a></td><td><p><tt class="literal">admin</tt> [<em class="replaceable"><tt>options</em>] <em class="replaceable">files</tt></em></p><p><a name="IXT-18-123505" />Add <em class="emphasis">files</em> to SCCS or change <em class="emphasis">options</em> of SCCS<em class="emphasis">files</em>.  </p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-a</tt>[<tt><em class="replaceable">user</em></tt> | <tt><em class="replaceable">groupid</em></tt>]</dt><dd>Assign <em class="emphasis">user</em></tt> or <em class="emphasis">groupid</em></tt> permission to makedeltas; a <tt class="literal">!</tt> before <em class="emphasis">user</em></tt> or <em class="emphasis">groupid</em></tt>denies permission.  If no list is given, anyone has permission.</p></dd><dt><tt class="literal">-b</tt></dt><dd>Encode the file contents as binary data.Files that contain ASCII NUL or other control characters, or that do notend in a newline, are automatically treated as binary files and encoded.This option is typically used together with <tt class="literal">-i</tt>.Solaris only.</p></dd><dt><tt class="literal">-d</tt><tt><em class="replaceable">flag</em></tt></dt><dd>Delete <em class="emphasis">flag</em></tt> previously set with <tt class="literal">-f</tt>.  Applicable<em class="emphasis">flags</em></tt> are:</p></dd></dl><table border="1" cellpadding="3"><tr><td><tt class="literal">b</tt></td><td><p>Enable the <tt class="literal">-b</tt> option in a <tt class="literal">get</tt> command; this allows branch deltas.</p></td></tr><tr><td><tt class="literal">c</tt><tt><em class="replaceable"><tt>n</em></tt></td><td><p>Set highest release to <em class="emphasis">n</tt></em></tt> (default is 9999).</p></td></tr><tr><td><tt class="literal">d</tt><tt><em class="replaceable"><tt>n</em></tt></td><td><p>Set <tt class="literal">get</tt>'s default delta number to <em class="emphasis">n</tt></em></tt>.</p></td></tr><tr><td><tt class="literal">f</tt><tt><em class="replaceable"><tt>n</em></tt></td><td><p>Set lowest release to <em class="emphasis">n</tt></em></tt> (default is 1).</p></td></tr><tr><td><tt class="literal">i</tt>[<tt><em class="replaceable"><tt>string</tt></em></tt>]</td><td><p>Treat &#8220;No id keywords (ge6)&#8221; as a fatal error.<em class="emphasis">string</em></tt>, ifpresent, forces a fatal error if keywords do not exactly match<em class="emphasis">string</em></tt>.Solaris does not allow you to supply a <em class="emphasis">string</em></tt>.</p></td></tr><tr><td><tt class="literal">j</tt></td><td><p>Allow multiple concurrent <tt class="literal">get</tt> s.</p></td></tr><tr><td><tt class="literal">l</tt><tt><em class="replaceable"><tt>list</em></tt></td><td><p>Releases in <em class="emphasis">list</tt></em></tt> cannot accept changes;use the letter <tt class="literal">a</tt>to specify all releases.</p></td></tr><tr><td><tt class="literal">m</tt><tt><em class="replaceable"><tt>name</em></tt></td><td><p>Substitute <tt class="literal">%M%</tt> keyword with module <em class="emphasis">name</tt></em></tt>.</p></td></tr><tr><td><tt class="literal">n</tt></td><td><p>Create a null delta from which to branch.</p></td></tr><tr><td><tt class="literal">q</tt><tt><em class="replaceable"><tt>string</em></tt></td><td><p>Substitute <tt class="literal">%Q%</tt> keyword with <em class="emphasis">string</tt></em></tt>.</p></td></tr><tr><td><tt class="literal">t</tt><tt><em class="replaceable"><tt>type</em></tt></td><td><p>Substitute <tt class="literal">%Y%</tt> keyword with module <em class="emphasis">type</tt></em></tt>.</p></td></tr><tr><td><tt class="literal">v</tt>[<tt><em class="replaceable"><tt>prog</tt></em></tt>]</td><td><p>Force <tt class="literal">delta</tt> command to prompt for modification request numbersas the reason for creating a delta.  Run program <em class="emphasis">prog</em></tt> tocheck for valid numbers.</p></td></tr></table><p><dl><dt><tt class="literal">-e</tt>[<tt><em class="replaceable">user</em></tt> | <tt><em class="replaceable">groupid</em></tt>]</dt><dd>Permission to make deltas is denied to each <em class="emphasis">user</em></tt> or<em class="emphasis">groupid</em>.</p></dd><dt><tt class="literal">-f</tt><tt><em class="replaceable">flag</em></tt></dt><dd>Set <em class="emphasis">flag</em></tt> (see <tt class="literal">-d</tt> above).</p></dd><dt><tt class="literal">-h</tt></dt><dd>Check an existing SCCS file for possible corruption.</p></dd><dt><tt class="literal">-i</tt>[<tt><em class="replaceable">file</em></tt>]</dt><dd>Create a new SCCS file using the contents of <em class="emphasis">file</em></tt> as the initialdelta.  If <em class="emphasis">file</em></tt> is omitted, use standard input.This option implies the <tt class="literal">-n</tt> option.</p></dd><dt><tt class="literal">-m</tt>[<tt><em class="replaceable">list</em></tt>]</dt><dd>Insert <em class="emphasis">list</em></tt> of modification request numbers as the reason forcreating the file.</p></dd><dt><tt class="literal">-n</tt></dt><dd>Create a new SCCS file that is empty.</p></dd><dt><tt class="literal">-r</tt><tt><em class="replaceable">n</em></tt>.<tt><em class="replaceable">n</em></tt></dt><dd>Set initial delta to release number <em class="emphasis">n</em></tt><tt class="literal">.</tt><em class="emphasis">n</em></tt>.  Default is1.1.  Can only be used with <tt class="literal">-i</tt>.</p></dd><dt><tt class="literal">-t</tt>[<tt><em class="replaceable">file</em></tt>]</dt><dd>Replace SCCS file description with contents of <em class="emphasis">file</em></tt>.  If<em class="emphasis">file</em></tt> is missing, the existing description is deleted.</p></dd><dt><tt class="literal">-y</tt>[<tt><em class="replaceable">text</em></tt>]</dt><dd>Insert <em class="emphasis">text</em></tt> as comment for initial delta (valid only with<tt class="literal">-i</tt> or <tt class="literal">-n</tt>).</p></dd><dt><tt class="literal">-z</tt></dt><dd>Recompute the SCCS file checksum and store in first line.The file should be verified first; see <b class="emphasis-bold"><a href=#val">val</a></b>.</p></dd></dl></td></tr><tr><td valign="top"><a name="cdc">cdc</a></td><td><p><tt class="literal">cdc</tt> <tt class="literal">-r</tt><tt><em class="replaceable"><tt>sid</em></tt> [<tt><em class="replaceable">options</em></tt>] <tt><em class="replaceable">files</tt></em></tt></p><p><a name="IXT-18-123506" />Change the delta comments of the specified <em class="emphasis">sid</em></tt> (SCCS ID) of oneor more SCCS <em class="emphasis">files</em></tt>.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-m</tt>[<em class="emphasis">list</em></tt>]</dt><dd>Add the <em class="emphasis">list</em></tt> of modification request numbers (use a ! before any number to delete it).  <tt class="literal">-m</tt> is useful only when<tt class="literal">admin</tt> has set the <tt class="literal">v</tt> flag for <em class="emphasis">file</em>.If <tt class="literal">-m</tt> is omitted, the terminal displays <tt class="literal">MRs?</tt>as an input prompt.</p></dd><dt><tt class="literal">-y</tt>[<tt><em class="replaceable">string</em></tt>]</dt><dd>Add <em class="emphasis">string</em></tt> to the comments for the specified delta.If <tt class="literal">-y</tt> is omitted, the terminal displays <tt class="literal">comments?</tt>as an input prompt.</p></dd></dl><h4 class="refsect2">Example</h4><p>For delta 1.3 of file <tt class="literal">s.prog.c</tt>, add modificationnumbers x01-5 and x02-8, and then add comments:</p><blockquote><pre class="code">$ <tt class="userinput"><b>cdc -r1.3 s.prog.c </b></tt>MRs? <tt class="userinput"><b>x01-5 x02-8</b></tt>comments? <tt class="userinput"><b>this went out to review</b></tt></pre></blockquote></td></tr><tr><td valign="top"><a name="comb">comb</a></td><td><p><tt class="literal">comb</tt> [<tt><em class="replaceable"><tt>options</em></tt>] <tt><em class="replaceable">files</tt></em></tt></p><p><a name="IXT-18-123507" />Reduce the size of the specified SCCS <em class="emphasis">files</em></tt>.  This is done bypruning selected deltas and combining those that remain, therebyreconstructing the SCCS file.  The default behavior prunes all but themost recent delta in a particular branch and keeps only thoseancestors needed to preserve the tree structure.  <tt class="literal">comb</tt>produces a shell script on standard output.  Actual reconstructionof the SCCS files is done by running the script.</p><h4 class="refsect2">Options</h4><dl><dt><tt class="literal">-c</tt><tt><em class="replaceable">list</em></tt></dt><dd>Preserve only those deltas whose SCCS IDsare specified in the comma-separated <em class="emphasis">list</em>.Use a hyphen (&#8211;) to supply a range; e.g., <tt class="literal">1.3,2.1-2.5</tt>.</p></dd><dt><tt class="literal">-o</tt></dt><dd>Access the reconstructed <em class="emphasis">file</em></tt> at the release number of the delta that is created, instead of at the most recent ancestor.  This optionmay change the tree structure.</p></dd><dt><tt class="literal">-p</tt><tt><em class="replaceable">sid</em></tt></dt><dd>In reconstructing <em class="emphasis">file</em></tt>,discard all deltas whose SCCS identification string is older than <em class="emphasis">sid</em>.</p></dd><dt><tt class="literal">-s</tt></dt><dd>Generate a shell script that calculates how much the file will bereduced in size.  <tt class="literal">-s</tt> is useful as a preview of what<tt class="literal">comb</tt> does when actually run.</p></dd></dl></td></tr><tr><td valign="top"><a name="delta">delta</a></td><td><p><tt class="literal">delta</tt> [<tt><em class="replaceable"><tt>options</em></tt>] <tt><em class="replaceable">files</tt></em></tt></p><p>

⌨️ 快捷键说明

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