* Merged newxml into HEAD
[linux_from_scratch.git] / BOOK / chapter06 / diffutils.xml
blob845b8381883a8a2e4b66bacc3b267a8370357fc6
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3   <!ENTITY % general-entities SYSTEM "../general.ent">
4   %general-entities;
5 ]>
6 <sect1 id="ch-system-diffutils" xreflabel="Diffutils">
7 <title>Diffutils-&diffutils-version;</title>
8 <?dbhtml filename="diffutils.html"?>
10 <indexterm zone="ch-system-diffutils"><primary sortas="a-Diffutils">Diffutils</primary></indexterm>
12 <para>The Diffutils package contains programs that show the differences
13 between files or directories.</para>
15 <screen>&buildtime; 0.1 SBU
16 &diskspace; 7.5 MB</screen>
18 <para>Diffutils installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC,
19 Gettext, Glibc, Grep, Make, Sed.</para>
23 <sect2>
24 <title>Installation of Diffutils</title>
26 <para>Prepare Diffutils for compilation:</para>
28 <screen><userinput>./configure --prefix=/usr</userinput></screen>
30 <para>Compile the package:</para>
32 <screen><userinput>make</userinput></screen>
34 <para>Install it:</para>
36 <screen><userinput>make install</userinput></screen>
38 </sect2>
41 <sect2 id="contents-diffutils"><title>Contents of Diffutils</title>
43 <para><emphasis>Installed programs</emphasis>: cmp, diff, diff3 and sdiff</para>
45 </sect2>
48 <sect2><title>Short descriptions</title>
50 <indexterm zone="ch-system-diffutils cmp"><primary sortas="b-cmp">cmp</primary></indexterm>
51 <para id="cmp"><command>cmp</command> compares two files and reports whether or
52 in which bytes they differ.</para>
54 <indexterm zone="ch-system-diffutils diff"><primary sortas="b-diff">diff</primary></indexterm>
55 <para id="diff"><command>diff</command> compares two files or directories and reports
56 which lines in the files differ.</para>
58 <indexterm zone="ch-system-diffutils diff3"><primary sortas="b-diff3">diff3</primary></indexterm>
59 <para id="diff3"><command>diff3</command> compares three files line by line.</para>
61 <indexterm zone="ch-system-diffutils sdiff"><primary sortas="b-sdiff">sdiff</primary></indexterm>
62 <para id="sdiff"><command>sdiff</command> merges two files and interactively outputs
63 the results.</para>
65 </sect2>
69 </sect1>