📄 ctm.html
字号:
<p>As a developer one would like to experiment with and change files in the source tree.<b class="APPLICATION">CTM</b> supports local modifications in a limited way: beforechecking for the presence of a file <tt class="FILENAME">foo</tt>, it first looks for <ttclass="FILENAME">foo.ctm</tt>. If this file exists, <b class="APPLICATION">CTM</b> willoperate on it instead of <tt class="FILENAME">foo</tt>.</p><p>This behavior gives us a simple way to maintain local changes: simply copy the filesyou plan to modify to the corresponding file names with a <tt class="FILENAME">.ctm</tt>suffix. Then you can freely hack the code, while <b class="APPLICATION">CTM</b> keeps the<tt class="FILENAME">.ctm</tt> file up-to-date.</p></div><div class="SECT2"><h2 class="SECT2"><a id="AEN39766" name="AEN39766">A.4.6 Other Interesting <bclass="APPLICATION">CTM</b> Options</a></h2><div class="SECT3"><h3 class="SECT3"><a id="AEN39769" name="AEN39769">A.4.6.1 Finding Out Exactly What WouldBe Touched by an Update</a></h3><p>You can determine the list of changes that <b class="APPLICATION">CTM</b> will make onyour source repository using the <var class="OPTION">-l</var> option to <bclass="APPLICATION">CTM</b>.</p><p>This is useful if you would like to keep logs of the changes, pre- or post- processthe modified files in any manner, or just are feeling a tad paranoid.</p></div><div class="SECT3"><h3 class="SECT3"><a id="AEN39776" name="AEN39776">A.4.6.2 Making Backups BeforeUpdating</a></h3><p>Sometimes you may want to backup all the files that would be changed by a <bclass="APPLICATION">CTM</b> update.</p><p>Specifying the <var class="OPTION">-B backup-file</var> option causes <bclass="APPLICATION">CTM</b> to backup all files that would be touched by a given <bclass="APPLICATION">CTM</b> delta to <tt class="FILENAME">backup-file</tt>.</p></div><div class="SECT3"><h3 class="SECT3"><a id="AEN39785" name="AEN39785">A.4.6.3 Restricting the Files Touchedby an Update</a></h3><p>Sometimes you would be interested in restricting the scope of a given <bclass="APPLICATION">CTM</b> update, or may be interested in extracting just a few filesfrom a sequence of deltas.</p><p>You can control the list of files that <b class="APPLICATION">CTM</b> would operate onby specifying filtering regular expressions using the <var class="OPTION">-e</var> and<var class="OPTION">-x</var> options.</p><p>For example, to extract an up-to-date copy of <ttclass="FILENAME">lib/libc/Makefile</tt> from your collection of saved <bclass="APPLICATION">CTM</b> deltas, run the commands:</p><pre class="SCREEN"><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">cd /where/ever/you/want/to/extract/it/</kbd><samp class="PROMPT">#</samp> <kbdclass="USERINPUT">ctm -e '^lib/libc/Makefile' ~ctm/src-xxx.*</kbd></pre><p>For every file specified in a <b class="APPLICATION">CTM</b> delta, the <varclass="OPTION">-e</var> and <var class="OPTION">-x</var> options are applied in the ordergiven on the command line. The file is processed by <b class="APPLICATION">CTM</b> onlyif it is marked as eligible after all the <var class="OPTION">-e</var> and <varclass="OPTION">-x</var> options are applied to it.</p></div></div><div class="SECT2"><h2 class="SECT2"><a id="AEN39808" name="AEN39808">A.4.7 Future Plans for <bclass="APPLICATION">CTM</b></a></h2><p>Tons of them:</p><ul><li><p>Use some kind of authentication into the <b class="APPLICATION">CTM</b> system, so asto allow detection of spoofed <b class="APPLICATION">CTM</b> updates.</p></li><li><p>Clean up the options to <b class="APPLICATION">CTM</b>, they became confusing andcounter intuitive.</p></li></ul></div><div class="SECT2"><h2 class="SECT2"><a id="AEN39820" name="AEN39820">A.4.8 Miscellaneous Stuff</a></h2><p>There is a sequence of deltas for the <var class="LITERAL">ports</var> collection too,but interest has not been all that high yet.</p></div><div class="SECT2"><h2 class="SECT2"><a id="MIRRORS-CTM" name="MIRRORS-CTM">A.4.9 CTM Mirrors</a></h2><p><a href="ctm.html">CTM</a>/FreeBSD is available via anonymous FTP from the followingmirror sites. If you choose to obtain <b class="APPLICATION">CTM</b> via anonymous FTP,please try to use a site near you.</p><p>In case of problems, please contact the <ahref="http://lists.FreeBSD.org/mailman/listinfo/ctm-users" target="_top">ctm-users</a>mailing list.</p><div class="VARIABLELIST"><dl><dt>California, Bay Area, official source</dt><dd><ul><li><p><a href="ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CTM/"target="_top">ftp://ftp.FreeBSD.org/pub/FreeBSD/development/CTM/</a></p></li></ul></dd><dt>South Africa, backup server for old deltas</dt><dd><ul><li><p><a href="ftp://ftp.za.FreeBSD.org/pub/FreeBSD/CTM/"target="_top">ftp://ftp.za.FreeBSD.org/pub/FreeBSD/CTM/</a></p></li></ul></dd><dt>Taiwan/R.O.C.</dt><dd><ul><li><p><a href="ftp://ctm.tw.FreeBSD.org/pub/FreeBSD/development/CTM/"target="_top">ftp://ctm.tw.FreeBSD.org/pub/FreeBSD/development/CTM/</a></p></li><li><p><a href="ftp://ctm2.tw.FreeBSD.org/pub/FreeBSD/development/CTM/"target="_top">ftp://ctm2.tw.FreeBSD.org/pub/FreeBSD/development/CTM/</a></p></li><li><p><a href="ftp://ctm3.tw.FreeBSD.org/pub/FreeBSD/development/CTM/"target="_top">ftp://ctm3.tw.FreeBSD.org/pub/FreeBSD/development/CTM/</a></p></li></ul></dd></dl></div><p>If you did not find a mirror near to you or the mirror is incomplete, try to use asearch engine such as <a href="http://www.alltheweb.com/"target="_top">alltheweb</a>.</p></div></div><div class="NAVFOOTER"><hr align="LEFT" width="100%" /><table summary="Footer navigation table" width="100%" border="0" cellpadding="0"cellspacing="0"><tr><td width="33%" align="left" valign="top"><a href="anoncvs.html"accesskey="P">Prev</a></td><td width="34%" align="center" valign="top"><a href="index.html"accesskey="H">Home</a></td><td width="33%" align="right" valign="top"><a href="cvsup.html"accesskey="N">Next</a></td></tr><tr><td width="33%" align="left" valign="top">Anonymous CVS</td><td width="34%" align="center" valign="top"><a href="mirrors.html"accesskey="U">Up</a></td><td width="33%" align="right" valign="top">Using CVSup</td></tr></table></div><p align="center"><small>This, and other documents, can be downloaded from <ahref="ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/">ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/</a>.</small></p><p align="center"><small>For questions about FreeBSD, read the <ahref="http://www.FreeBSD.org/docs.html">documentation</a> before contacting <<ahref="mailto:questions@FreeBSD.org">questions@FreeBSD.org</a>>.<br />For questions about this documentation, e-mail <<ahref="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</small></p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -