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">
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>
17 <title>Sed-&sed-version;</title>
19 <indexterm zone="ch-system-sed">
20 <primary sortas="a-Sed">Sed</primary>
23 <sect2 role="package">
26 <para>The Sed package contains a stream editor.</para>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
33 <seg>&sed-ch6-sbu;</seg>
34 <seg>&sed-ch6-du;</seg>
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>
53 <title>The meaning of the new configure option:</title>
56 <term><parameter>-i -htmldir</parameter></term>
58 <para>This sets the installation directory for the HTML documentation.</para>
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>
80 <sect2 id="contents-sed" role="content">
81 <title>Contents of Sed</title>
84 <segtitle>Installed program</segtitle>
85 <segtitle>Installed directory</segtitle>
89 <seg>/usr/share/doc/sed-&sed-version;</seg>
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>
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>