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">
8 <sect1 id="ch-system-diffutils" role="wrap">
9 <?dbhtml filename="diffutils.html"?>
11 <sect1info condition="script">
12 <productname>diffutils</productname>
13 <productnumber>&diffutils-version;</productnumber>
14 <address>&diffutils-url;</address>
17 <title>Diffutils-&diffutils-version;</title>
19 <indexterm zone="ch-system-diffutils">
20 <primary sortas="a-Diffutils">Diffutils</primary>
23 <sect2 role="package">
26 <para>The Diffutils package contains programs that show the differences
27 between files or directories.</para>
30 <segtitle>&buildtime;</segtitle>
31 <segtitle>&diskspace;</segtitle>
34 <seg>&diffutils-ch6-sbu;</seg>
35 <seg>&diffutils-ch6-du;</seg>
41 <sect2 role="installation">
42 <title>Installation of Diffutils</title>
44 <para>First fix a file so locale files are installed:</para>
46 <screen><userinput remap="pre">sed -i 's:= @mkdir_p@:= /bin/mkdir -p:' po/Makefile.in.in</userinput></screen>
48 <para>Prepare Diffutils for compilation:</para>
50 <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
52 <para>Compile the package:</para>
54 <screen><userinput remap="make">make</userinput></screen>
56 <para>To test the results, issue:</para>
58 <screen><userinput remap="test">make check</userinput></screen>
60 <para>The test-update-copyright.sh failure can be safely ignored.</para>
62 <para>Install the package:</para>
64 <screen><userinput remap="install">make install</userinput></screen>
69 <sect2 id="contents-diffutils" role="content">
70 <title>Contents of Diffutils</title>
73 <segtitle>Installed programs</segtitle>
76 <seg>cmp, diff, diff3, and sdiff</seg>
81 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
82 <?dbfo list-presentation="list"?>
83 <?dbhtml list-presentation="table"?>
85 <varlistentry id="cmp">
86 <term><command>cmp</command></term>
88 <para>Compares two files and reports whether or in which bytes they
90 <indexterm zone="ch-system-diffutils cmp">
91 <primary sortas="b-cmp">cmp</primary>
96 <varlistentry id="diff">
97 <term><command>diff</command></term>
99 <para>Compares two files or directories and reports which lines in
100 the files differ</para>
101 <indexterm zone="ch-system-diffutils diff">
102 <primary sortas="b-diff">diff</primary>
107 <varlistentry id="diff3">
108 <term><command>diff3</command></term>
110 <para>Compares three files line by line</para>
111 <indexterm zone="ch-system-diffutils diff3">
112 <primary sortas="b-diff3">diff3</primary>
117 <varlistentry id="sdiff">
118 <term><command>sdiff</command></term>
120 <para>Merges two files and interactively outputs the results</para>
121 <indexterm zone="ch-system-diffutils sdiff">
122 <primary sortas="b-sdiff">sdiff</primary>