source: BOOK/final-system/common/diffutils.xml @ 4ff3f92

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 4ff3f92 was 4ff3f92, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Drop the i18n patch for diffutils and change build commands for 3.0.0.

  • Property mode set to 100644
File size: 3.3 KB
Line 
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
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
30<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
31
32    <para os="s1">Diffutils wants <command>ed</command> as the default editor.
33    The following sed will change the default to <command>vim</command>:</para>
34
35<screen os="s2"><userinput>sed -i 's@\(^#define DEFAULT_EDITOR_PROGRAM \).*@\1"vi"@' lib/config.h</userinput></screen>
36
37    <para os="c">Compile the package:</para>
38
39<screen os="d"><userinput>make</userinput></screen>
40
41    <para os="e">This package does not come with a test suite.</para>
42
43    <para os="f">Install the package:</para>
44
45<screen os="g"><userinput>make install</userinput></screen>
46
47  </sect2>
48
49  <sect2 id="contents-diffutils" role="content">
50    <title>Contents of Diffutils</title>
51
52    <segmentedlist>
53      <segtitle>Installed programs</segtitle>
54
55      <seglistitem>
56        <seg>cmp, diff, diff3, and sdiff</seg>
57      </seglistitem>
58    </segmentedlist>
59
60    <variablelist>
61      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
62      <?dbfo list-presentation="list"?>
63      <?dbhtml list-presentation="table"?>
64
65      <varlistentry id="cmp">
66        <term><command>cmp</command></term>
67        <listitem>
68          <para>Compares two files and reports whether or in which bytes
69          they differ</para>
70          <indexterm zone="ch-system-diffutils cmp">
71            <primary sortas="b-cmp">cmp</primary>
72          </indexterm>
73        </listitem>
74      </varlistentry>
75
76      <varlistentry id="diff">
77        <term><command>diff</command></term>
78        <listitem>
79          <para>Compares two files or directories and reports which lines in
80          the files differ</para>
81          <indexterm zone="ch-system-diffutils diff">
82            <primary sortas="b-diff">diff</primary>
83          </indexterm>
84        </listitem>
85      </varlistentry>
86
87      <varlistentry id="diff3">
88        <term><command>diff3</command></term>
89        <listitem>
90          <para>Compares three files line by line</para>
91          <indexterm zone="ch-system-diffutils diff3">
92            <primary sortas="b-diff3">diff3</primary>
93          </indexterm>
94        </listitem>
95      </varlistentry>
96
97      <varlistentry id="sdiff">
98        <term><command>sdiff</command></term>
99        <listitem>
100          <para>Merges two files and interactively outputs the results</para>
101          <indexterm zone="ch-system-diffutils sdiff">
102            <primary sortas="b-sdiff">sdiff</primary>
103          </indexterm>
104        </listitem>
105      </varlistentry>
106
107    </variablelist>
108
109  </sect2>
110
111</sect1>
Note: See TracBrowser for help on using the repository browser.