diffutils.xml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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-diffutils" role="wrap">
  8. <?dbhtml filename="diffutils.html"?>
  9. <sect1info condition="script">
  10. <productname>diffutils</productname>
  11. <productnumber>&diffutils-version;</productnumber>
  12. <address>&diffutils-url;</address>
  13. </sect1info>
  14. <title>Diffutils-&diffutils-version;</title>
  15. <indexterm zone="ch-system-diffutils">
  16. <primary sortas="a-Diffutils">Diffutils</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Diffutils 软件包包含显示文件或目录之间差异的程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&diffutils-ch6-sbu;</seg>
  26. <seg>&diffutils-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Diffutils</title>
  32. <para>准备安装 Diffutils:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  34. <para>编译该软件包:</para>
  35. <screen><userinput remap="make">make</userinput></screen>
  36. <para>运行以下命令以测试编译结果:</para>
  37. <screen><userinput remap="test">make check</userinput></screen>
  38. <para>安装该软件包:</para>
  39. <screen><userinput remap="install">make install</userinput></screen>
  40. </sect2>
  41. <sect2 id="contents-diffutils" role="content">
  42. <title>Diffutils 的内容</title>
  43. <segmentedlist>
  44. <segtitle>安装的程序</segtitle>
  45. <seglistitem>
  46. <seg>cmp, diff, diff3, 以及 sdiff</seg>
  47. </seglistitem>
  48. </segmentedlist>
  49. <variablelist>
  50. <bridgehead renderas="sect3">简要描述</bridgehead>
  51. <?dbfo list-presentation="list"?>
  52. <?dbhtml list-presentation="table"?>
  53. <varlistentry id="cmp">
  54. <term><command>cmp</command></term>
  55. <listitem>
  56. <para>比较两个文件并报告它们是否相同,或哪些字节不同
  57. </para>
  58. <indexterm zone="ch-system-diffutils cmp">
  59. <primary sortas="b-cmp">cmp</primary>
  60. </indexterm>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry id="diff">
  64. <term><command>diff</command></term>
  65. <listitem>
  66. <para>比较两个文件或目录,并报告文件中哪些行不同</para>
  67. <indexterm zone="ch-system-diffutils diff">
  68. <primary sortas="b-diff">diff</primary>
  69. </indexterm>
  70. </listitem>
  71. </varlistentry>
  72. <varlistentry id="diff3">
  73. <term><command>diff3</command></term>
  74. <listitem>
  75. <para>逐行比较三个文件</para>
  76. <indexterm zone="ch-system-diffutils diff3">
  77. <primary sortas="b-diff3">diff3</primary>
  78. </indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="sdiff">
  82. <term><command>sdiff</command></term>
  83. <listitem>
  84. <para>合并两个文件,并交互地输出结果</para>
  85. <indexterm zone="ch-system-diffutils sdiff">
  86. <primary sortas="b-sdiff">sdiff</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. </sect2>
  92. </sect1>