LFS-systemd-7.8
[linux_from_scratch.git] / chapter06 / sed.xml
blob6d75bd4e667dc248b235b6a952309ee3cf352f34
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 ]>
8 <sect1 id="ch-system-sed" role="wrap">
9   <?dbhtml filename="sed.html"?>
11   <sect1info condition="script">
12     <productname>sed</productname>
13     <productnumber>&sed-version;</productnumber>
14     <address>&sed-url;</address>
15   </sect1info>
17   <title>Sed-&sed-version;</title>
19   <indexterm zone="ch-system-sed">
20     <primary sortas="a-Sed">Sed</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>The Sed package contains a stream editor.</para>
28     <segmentedlist>
29       <segtitle>&buildtime;</segtitle>
30       <segtitle>&diskspace;</segtitle>
32       <seglistitem>
33         <seg>&sed-ch6-sbu;</seg>
34         <seg>&sed-ch6-du;</seg>
35       </seglistitem>
36     </segmentedlist>
38   </sect2>
40   <sect2 role="installation">
41     <title>Installation of Sed</title>
43     <para>Prepare Sed for compilation:</para>
45 <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin --htmldir=/usr/share/doc/sed-&sed-version;</userinput></screen>
47     <variablelist>
48       <title>The meaning of the new configure option:</title>
50       <varlistentry>
51         <term><parameter>--htmldir</parameter></term>
52         <listitem>
53           <para>This sets the installation directory for the HTML documentation.</para>
54         </listitem>
55       </varlistentry>
56     </variablelist>
58     <para>Compile the package and generate the HTML documentation:</para>
60 <screen><userinput remap="make">make
61 make html</userinput></screen>
63     <para>To test the results, issue:</para>
65 <screen><userinput remap="test">make check</userinput></screen>
67     <para>Install the package and its documentation:</para>
69 <screen><userinput remap="install">make install
70 make -C doc install-html</userinput></screen>
72   </sect2>
74   <sect2 id="contents-sed" role="content">
75     <title>Contents of Sed</title>
77     <segmentedlist>
78       <segtitle>Installed program</segtitle>
79       <segtitle>Installed directory</segtitle>
81       <seglistitem>
82         <seg>sed</seg>
83         <seg>/usr/share/doc/sed-&sed-version;</seg>
84       </seglistitem>
85     </segmentedlist>
87     <variablelist>
88       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
89       <?dbfo list-presentation="list"?>
90       <?dbhtml list-presentation="table"?>
92       <varlistentry id="sed">
93         <term><command>sed</command></term>
94         <listitem>
95           <para>Filters and transforms text files in a single pass</para>
96           <indexterm zone="ch-system-sed sed">
97             <primary sortas="b-sed">sed</primary>
98           </indexterm>
99         </listitem>
100       </varlistentry>
102     </variablelist>
104   </sect2>
106 </sect1>