patch.xml 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-patch" role="wrap">
  8. <?dbhtml filename="patch.html"?>
  9. <sect1info condition="script">
  10. <productname>patch</productname>
  11. <productnumber>&patch-version;</productnumber>
  12. <address>&patch-url;</address>
  13. </sect1info>
  14. <title>Patch-&patch-version;</title>
  15. <indexterm zone="ch-system-patch">
  16. <primary sortas="a-Patch">Patch</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Patch 软件包包含根据通常由 <command>diff</command>
  21. 程序创建的 <quote>补丁</quote> 文件,修改或创建文件的程序。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&patch-ch6-sbu;</seg>
  27. <seg>&patch-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Patch</title>
  33. <para>准备安装 Patch:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  35. <para>编译该软件包:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>运行以下命令以测试编译结果:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>安装该软件包:</para>
  40. <screen><userinput remap="install">make install</userinput></screen>
  41. </sect2>
  42. <sect2 id="contents-patch" role="content">
  43. <title>Patch 的内容</title>
  44. <segmentedlist>
  45. <segtitle>安装的程序</segtitle>
  46. <seglistitem>
  47. <seg>patch</seg>
  48. </seglistitem>
  49. </segmentedlist>
  50. <variablelist>
  51. <bridgehead renderas="sect3">简要描述</bridgehead>
  52. <?dbfo list-presentation="list"?>
  53. <?dbhtml list-presentation="table"?>
  54. <varlistentry id="patch">
  55. <term><command>patch</command></term>
  56. <listitem>
  57. <para>根据补丁文件修改文件 [补丁文件一般是
  58. 使用 <command>diff</command> 程序创建的差异列表。
  59. 通过将这些差异应用到原始文件,
  60. <command>patch</command> 即可创建应用补丁的文件版本。]</para>
  61. <indexterm zone="ch-system-patch patch">
  62. <primary sortas="b-patch">patch</primary>
  63. </indexterm>
  64. </listitem>
  65. </varlistentry>
  66. </variablelist>
  67. </sect2>
  68. </sect1>