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

Last change on this file since 88ef769 was 686839b, checked in by William Harrington <kb0iic@…>, 11 years ago

Add screen tags around userinput test commands and remap userinput for test commands as remap="test".

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[e0e40d3]28 <para os="a">Prepare Diffutils for compilation:</para>
[3f8be484]29
[e0e40d3]30<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
[3f8be484]31
[7691941]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>
[6a5fd75]34
[4ff3f92]35<screen os="s2"><userinput>sed -i 's@\(^#define DEFAULT_EDITOR_PROGRAM \).*@\1"vi"@' lib/config.h</userinput></screen>
[bf252b7]36
[e0e40d3]37 <para os="c">Compile the package:</para>
[3f8be484]38
[e0e40d3]39<screen os="d"><userinput>make</userinput></screen>
[3f8be484]40
[686839b]41 <para os="e">To test the results, issue:</para>
42
43<screen os="e2"><userinput remap="test">make check</userinput></screen>
[3f8be484]44
[e0e40d3]45 <para os="f">Install the package:</para>
[3f8be484]46
[e0e40d3]47<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]48
49 </sect2>
50
51 <sect2 id="contents-diffutils" role="content">
52 <title>Contents of Diffutils</title>
53
54 <segmentedlist>
55 <segtitle>Installed programs</segtitle>
56
57 <seglistitem>
58 <seg>cmp, diff, diff3, and sdiff</seg>
59 </seglistitem>
60 </segmentedlist>
61
62 <variablelist>
63 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
64 <?dbfo list-presentation="list"?>
65 <?dbhtml list-presentation="table"?>
66
67 <varlistentry id="cmp">
68 <term><command>cmp</command></term>
69 <listitem>
70 <para>Compares two files and reports whether or in which bytes
71 they differ</para>
72 <indexterm zone="ch-system-diffutils cmp">
73 <primary sortas="b-cmp">cmp</primary>
74 </indexterm>
75 </listitem>
76 </varlistentry>
77
78 <varlistentry id="diff">
79 <term><command>diff</command></term>
80 <listitem>
81 <para>Compares two files or directories and reports which lines in
82 the files differ</para>
83 <indexterm zone="ch-system-diffutils diff">
84 <primary sortas="b-diff">diff</primary>
85 </indexterm>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry id="diff3">
90 <term><command>diff3</command></term>
91 <listitem>
92 <para>Compares three files line by line</para>
93 <indexterm zone="ch-system-diffutils diff3">
94 <primary sortas="b-diff3">diff3</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="sdiff">
100 <term><command>sdiff</command></term>
101 <listitem>
102 <para>Merges two files and interactively outputs the results</para>
103 <indexterm zone="ch-system-diffutils sdiff">
104 <primary sortas="b-sdiff">sdiff</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 </variablelist>
110
111 </sect2>
112
113</sect1>
Note: See TracBrowser for help on using the repository browser.