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

📄 patches_and_diffs.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="level1"><div class="li"><span class="li"><a href="#patches_and_diffs" class="toc">Patches and Diffs</a></span></div><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#creating_a_diff" class="toc">Creating a diff</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#patching_an_application" class="toc">Patching an application</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#diffstat" class="toc">diffstat</a></span></div></li></ul></li></ul></div></div><h1><a name="patches_and_diffs" id="patches_and_diffs">Patches and Diffs</a></h1><div class="level1"><p> Applying a patch or diff may sound complex, but it is relativily trival. This will provide a brief introduction. There is a more detailed article at the <a href="http://www.linuxjournal.com/article/1237" class="urlextern" title="http://www.linuxjournal.com/article/1237"  rel="nofollow">Linux Journal</a> web site.</p><p>The detail below assume that you have a recent <code>diff</code> and <code>patch</code> utility installed on your machine. If you do not, see:</p><ul><li class="level1"><div class="li"> diff : <a href="http://www.gnu.org/software/diffutils/diffutils.html" class="urlextern" title="http://www.gnu.org/software/diffutils/diffutils.html"  rel="nofollow">GNU Web site</a></div></li><li class="level1"><div class="li"> patch : <a href="http://www.gnu.org/software/patch/patch.html" class="urlextern" title="http://www.gnu.org/software/patch/patch.html"  rel="nofollow">GNU Web site</a></div></li></ul></div><!-- SECTION [1-537] --><h2><a name="creating_a_diff" id="creating_a_diff">Creating a diff</a></h2><div class="level2"><p> When submitting a change that you have created, the <code>diff</code> utility is used. It is normally used as: </p><pre class="code">diff -Naur olddir newdir &gt; dir.patch</pre><p> this will create a patch file between the old dir and the new dir.</p></div><!-- SECTION [538-788] --><h2><a name="patching_an_application" id="patching_an_application">Patching an application</a></h2><div class="level2"><pre class="code">patch -p0 &lt;dir.patchpatch -p1 &lt;dir.patch</pre></div><!-- SECTION [789-883] --><h2><a name="diffstat" id="diffstat">diffstat</a></h2><div class="level2"><pre class="code">diffstat dir.patch</pre></div><!-- SECTION [884-] --></body></html>

⌨️ 快捷键说明

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