sed.xml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. <sect1 id="ch-system-sed" role="wrap">
  8. <?dbhtml filename="sed.html"?>
  9. <sect1info condition="script">
  10. <productname>sed</productname>
  11. <productnumber>&sed-version;</productnumber>
  12. <address>&sed-url;</address>
  13. </sect1info>
  14. <title>Sed-&sed-version;</title>
  15. <indexterm zone="ch-system-sed">
  16. <primary sortas="a-Sed">Sed</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Sed package contains a stream editor.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&sed-ch6-sbu;</seg>
  26. <seg>&sed-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Sed</title>
  32. <para>First fix an issue in the LFS environment:</para>
  33. <screen><userinput remap="pre">sed -i 's/usr/tools/' build-aux/help2man</userinput></screen>
  34. <para>Prepare Sed for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
  36. <para>Compile the package and generate the HTML documentation:</para>
  37. <screen><userinput remap="make">make
  38. make html</userinput></screen>
  39. <para>To test the results, issue:</para>
  40. <screen><userinput remap="test">chown -Rv tester .
  41. su tester -c "PATH=$PATH make check"</userinput></screen>
  42. <para>Install the package and its documentation:</para>
  43. <screen><userinput remap="install">make install
  44. install -d -m755 /usr/share/doc/sed-&sed-version;
  45. install -m644 doc/sed.html /usr/share/doc/sed-&sed-version;</userinput></screen>
  46. </sect2>
  47. <sect2 id="contents-sed" role="content">
  48. <title>Contents of Sed</title>
  49. <segmentedlist>
  50. <segtitle>Installed program</segtitle>
  51. <segtitle>Installed directory</segtitle>
  52. <seglistitem>
  53. <seg>sed</seg>
  54. <seg>/usr/share/doc/sed-&sed-version;</seg>
  55. </seglistitem>
  56. </segmentedlist>
  57. <variablelist>
  58. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  59. <?dbfo list-presentation="list"?>
  60. <?dbhtml list-presentation="table"?>
  61. <varlistentry id="sed">
  62. <term><command>sed</command></term>
  63. <listitem>
  64. <para>Filters and transforms text files in a single pass</para>
  65. <indexterm zone="ch-system-sed sed">
  66. <primary sortas="b-sed">sed</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. </variablelist>
  71. </sect2>
  72. </sect1>