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

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f765af0 was bf252b7, checked in by Jim Gifford <clfs@…>, 16 years ago

Fixed Diffutils Man-Pages

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