| [02095ae] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> | 
|---|
|  | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" | 
|---|
|  | 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ | 
|---|
|  | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> | 
|---|
|  | 5 | %general-entities; | 
|---|
|  | 6 | ]> | 
|---|
|  | 7 |  | 
|---|
|  | 8 | <sect1 id="ch-system-diffutils" role="wrap"> | 
|---|
|  | 9 | <?dbhtml filename="diffutils.html"?> | 
|---|
|  | 10 |  | 
|---|
|  | 11 | <title>Diffutils-&diffutils-version;</title> | 
|---|
|  | 12 |  | 
|---|
|  | 13 | <indexterm zone="ch-system-diffutils"> | 
|---|
|  | 14 | <primary sortas="a-Diffutils">Diffutils</primary> | 
|---|
|  | 15 | </indexterm> | 
|---|
|  | 16 |  | 
|---|
|  | 17 | <sect2 role="package"> | 
|---|
|  | 18 | <title/> | 
|---|
|  | 19 |  | 
|---|
|  | 20 | <para>The Diffutils package contains programs that show the differences | 
|---|
|  | 21 | between files or directories.</para> | 
|---|
|  | 22 |  | 
|---|
|  | 23 | </sect2> | 
|---|
|  | 24 |  | 
|---|
|  | 25 | <sect2 role="installation"> | 
|---|
|  | 26 | <title>Installation of Diffutils</title> | 
|---|
|  | 27 |  | 
|---|
|  | 28 | <para os="a">Prepare Diffutils for compilation:</para> | 
|---|
|  | 29 |  | 
|---|
| [586feb7] | 30 | <screen os="b"><userinput>./configure --prefix=/usr --host=${CLFS_TARGET}</userinput></screen> | 
|---|
| [02095ae] | 31 |  | 
|---|
|  | 32 | <para os="c">Compile the package:</para> | 
|---|
|  | 33 |  | 
|---|
|  | 34 | <screen os="d"><userinput>make</userinput></screen> | 
|---|
|  | 35 |  | 
|---|
|  | 36 | <para os="e">Install the package:</para> | 
|---|
|  | 37 |  | 
|---|
| [586feb7] | 38 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen> | 
|---|
| [02095ae] | 39 |  | 
|---|
|  | 40 | </sect2> | 
|---|
|  | 41 |  | 
|---|
|  | 42 | <sect2 id="contents-diffutils" role="content"> | 
|---|
|  | 43 | <title>Contents of Diffutils</title> | 
|---|
|  | 44 |  | 
|---|
|  | 45 | <segmentedlist> | 
|---|
|  | 46 | <segtitle>Installed programs</segtitle> | 
|---|
|  | 47 |  | 
|---|
|  | 48 | <seglistitem> | 
|---|
|  | 49 | <seg>cmp, diff, diff3, and sdiff</seg> | 
|---|
|  | 50 | </seglistitem> | 
|---|
|  | 51 | </segmentedlist> | 
|---|
|  | 52 |  | 
|---|
|  | 53 | <variablelist> | 
|---|
|  | 54 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
|  | 55 | <?dbfo list-presentation="list"?> | 
|---|
|  | 56 | <?dbhtml list-presentation="table"?> | 
|---|
|  | 57 |  | 
|---|
|  | 58 | <varlistentry id="cmp"> | 
|---|
|  | 59 | <term><command>cmp</command></term> | 
|---|
|  | 60 | <listitem> | 
|---|
|  | 61 | <para>Compares two files and reports whether or in which bytes | 
|---|
|  | 62 | they differ</para> | 
|---|
|  | 63 | <indexterm zone="ch-system-diffutils cmp"> | 
|---|
|  | 64 | <primary sortas="b-cmp">cmp</primary> | 
|---|
|  | 65 | </indexterm> | 
|---|
|  | 66 | </listitem> | 
|---|
|  | 67 | </varlistentry> | 
|---|
|  | 68 |  | 
|---|
|  | 69 | <varlistentry id="diff"> | 
|---|
|  | 70 | <term><command>diff</command></term> | 
|---|
|  | 71 | <listitem> | 
|---|
|  | 72 | <para>Compares two files or directories and reports which lines in | 
|---|
|  | 73 | the files differ</para> | 
|---|
|  | 74 | <indexterm zone="ch-system-diffutils diff"> | 
|---|
|  | 75 | <primary sortas="b-diff">diff</primary> | 
|---|
|  | 76 | </indexterm> | 
|---|
|  | 77 | </listitem> | 
|---|
|  | 78 | </varlistentry> | 
|---|
|  | 79 |  | 
|---|
|  | 80 | <varlistentry id="diff3"> | 
|---|
|  | 81 | <term><command>diff3</command></term> | 
|---|
|  | 82 | <listitem> | 
|---|
|  | 83 | <para>Compares three files line by line</para> | 
|---|
|  | 84 | <indexterm zone="ch-system-diffutils diff3"> | 
|---|
|  | 85 | <primary sortas="b-diff3">diff3</primary> | 
|---|
|  | 86 | </indexterm> | 
|---|
|  | 87 | </listitem> | 
|---|
|  | 88 | </varlistentry> | 
|---|
|  | 89 |  | 
|---|
|  | 90 | <varlistentry id="sdiff"> | 
|---|
|  | 91 | <term><command>sdiff</command></term> | 
|---|
|  | 92 | <listitem> | 
|---|
|  | 93 | <para>Merges two files and interactively outputs the results</para> | 
|---|
|  | 94 | <indexterm zone="ch-system-diffutils sdiff"> | 
|---|
|  | 95 | <primary sortas="b-sdiff">sdiff</primary> | 
|---|
|  | 96 | </indexterm> | 
|---|
|  | 97 | </listitem> | 
|---|
|  | 98 | </varlistentry> | 
|---|
|  | 99 |  | 
|---|
|  | 100 | </variablelist> | 
|---|
|  | 101 |  | 
|---|
|  | 102 | </sect2> | 
|---|
|  | 103 |  | 
|---|
|  | 104 | </sect1> | 
|---|