diffutils.xml 3.9 KB

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