Update installed programs for perl
[linux_from_scratch.git] / chapter06 / sed.xml
blobaa6ac177c1f6f47ce7ab0743fadb58050c569b0c
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>First fix an issue in the LFS environment and remove a failing test:</para>
45 <screen><userinput remap="pre">sed -i 's/usr/tools/'                 build-aux/help2man
46 sed -i 's/testsuite.panic-tests.sh//' Makefile.in</userinput></screen>
48     <para>Prepare Sed for compilation:</para>
50 <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
51 <!--
52     <variablelist>
53       <title>The meaning of the new configure option:</title>
55       <varlistentry>
56         <term><parameter>-i -htmldir</parameter></term>
57         <listitem>
58           <para>This sets the installation directory for the HTML documentation.</para>
59         </listitem>
60       </varlistentry>
61     </variablelist>
62 -->
63     <para>Compile the package and generate the HTML documentation:</para>
65 <screen><userinput remap="make">make
66 make html</userinput></screen>
68     <para>To test the results, issue:</para>
70 <screen><userinput remap="test">make check</userinput></screen>
72     <para>Install the package and its documentation:</para>
74 <screen><userinput remap="install">make install
75 install -d -m755           /usr/share/doc/sed-&sed-version;
76 install -m644 doc/sed.html /usr/share/doc/sed-&sed-version;</userinput></screen>
78   </sect2>
80   <sect2 id="contents-sed" role="content">
81     <title>Contents of Sed</title>
83     <segmentedlist>
84       <segtitle>Installed program</segtitle>
85       <segtitle>Installed directory</segtitle>
87       <seglistitem>
88         <seg>sed</seg>
89         <seg>/usr/share/doc/sed-&sed-version;</seg>
90       </seglistitem>
91     </segmentedlist>
93     <variablelist>
94       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
95       <?dbfo list-presentation="list"?>
96       <?dbhtml list-presentation="table"?>
98       <varlistentry id="sed">
99         <term><command>sed</command></term>
100         <listitem>
101           <para>Filters and transforms text files in a single pass</para>
102           <indexterm zone="ch-system-sed sed">
103             <primary sortas="b-sed">sed</primary>
104           </indexterm>
105         </listitem>
106       </varlistentry>
108     </variablelist>
110   </sect2>
112 </sect1>