source: chapter06/diffutils.xml@ b06ca36

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b06ca36 was b06ca36, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated book sources to use DocBook-XML DTD 4.5

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7970 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.9 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 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&diffutils-ch6-sbu;</seg>
29 <seg>&diffutils-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of Diffutils</title>
37
38 <para>POSIX requires the <command>diff</command> command to treat whitespace
39 characters according to the current locale. The following patch fixes the
40 non-compliance issue:</para>
41
42<screen><userinput>patch -Np1 -i ../&diffutils-i18n-patch;</userinput></screen>
43
44 <para>The above patch will cause the Diffutils build system to attempt to
45 rebuild the <filename>diff.1</filename> man page using the unavailable
46 program <command>help2man</command>. The result is an unreadable man page for
47 <command>diff</command>. We can avoid this by updating the timestamp on
48 the file <filename>man/diff.1</filename>:</para>
49
50<screen><userinput>touch man/diff.1</userinput></screen>
51
52 <para>Prepare Diffutils for compilation:</para>
53
54<screen><userinput>./configure --prefix=/usr</userinput></screen>
55
56 <para>Compile the package:</para>
57
58<screen><userinput>make</userinput></screen>
59
60 <para>This package does not come with a test suite.</para>
61
62 <para>Install the package:</para>
63
64<screen><userinput>make install</userinput></screen>
65
66 </sect2>
67
68
69 <sect2 id="contents-diffutils" role="content">
70 <title>Contents of Diffutils</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74
75 <seglistitem>
76 <seg>cmp, diff, diff3, and sdiff</seg>
77 </seglistitem>
78 </segmentedlist>
79
80 <variablelist>
81 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
82 <?dbfo list-presentation="list"?>
83 <?dbhtml list-presentation="table"?>
84
85 <varlistentry id="cmp">
86 <term><command>cmp</command></term>
87 <listitem>
88 <para>Compares two files and reports whether or in which bytes they
89 differ</para>
90 <indexterm zone="ch-system-diffutils cmp">
91 <primary sortas="b-cmp">cmp</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry id="diff">
97 <term><command>diff</command></term>
98 <listitem>
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>
103 </indexterm>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry id="diff3">
108 <term><command>diff3</command></term>
109 <listitem>
110 <para>Compares three files line by line</para>
111 <indexterm zone="ch-system-diffutils diff3">
112 <primary sortas="b-diff3">diff3</primary>
113 </indexterm>
114 </listitem>
115 </varlistentry>
116
117 <varlistentry id="sdiff">
118 <term><command>sdiff</command></term>
119 <listitem>
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>
123 </indexterm>
124 </listitem>
125 </varlistentry>
126
127 </variablelist>
128
129 </sect2>
130
131</sect1>
Note: See TracBrowser for help on using the repository browser.