diffutils.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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>The Diffutils package contains programs that show the differences
  21. between files or directories.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&diffutils-ch6-sbu;</seg>
  27. <seg>&diffutils-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Diffutils</title>
  33. <para>POSIX requires the <command>diff</command> command to treat whitespace
  34. characters according to the current locale. The following patch fixes the
  35. non-compliance issue:</para>
  36. <screen><userinput remap="pre">patch -Np1 -i ../&diffutils-i18n-patch;</userinput></screen>
  37. <para>The above patch will cause the Diffutils build system to attempt to
  38. rebuild the <filename>diff.1</filename> man page using the unavailable
  39. program <command>help2man</command>. The result is an unreadable man page for
  40. <command>diff</command>. We can avoid this by updating the timestamp on
  41. the file <filename>man/diff.1</filename>:</para>
  42. <screen><userinput remap="pre">touch man/diff.1</userinput></screen>
  43. <para>Prepare Diffutils for compilation:</para>
  44. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  45. <para>Compile the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>This package does not come with a test suite.</para>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-diffutils" role="content">
  52. <title>Contents of Diffutils</title>
  53. <segmentedlist>
  54. <segtitle>Installed programs</segtitle>
  55. <seglistitem>
  56. <seg>cmp, diff, diff3, and sdiff</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="cmp">
  64. <term><command>cmp</command></term>
  65. <listitem>
  66. <para>Compares two files and reports whether or in which bytes they
  67. differ</para>
  68. <indexterm zone="ch-system-diffutils cmp">
  69. <primary sortas="b-cmp">cmp</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="diff">
  74. <term><command>diff</command></term>
  75. <listitem>
  76. <para>Compares two files or directories and reports which lines in
  77. the files differ</para>
  78. <indexterm zone="ch-system-diffutils diff">
  79. <primary sortas="b-diff">diff</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="diff3">
  84. <term><command>diff3</command></term>
  85. <listitem>
  86. <para>Compares three files line by line</para>
  87. <indexterm zone="ch-system-diffutils diff3">
  88. <primary sortas="b-diff3">diff3</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. <varlistentry id="sdiff">
  93. <term><command>sdiff</command></term>
  94. <listitem>
  95. <para>Merges two files and interactively outputs the results</para>
  96. <indexterm zone="ch-system-diffutils sdiff">
  97. <primary sortas="b-sdiff">sdiff</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  101. </variablelist>
  102. </sect2>
  103. </sect1>