sed.xml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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 some regression tests:</para>
  33. <screen><userinput remap="pre">patch -Np1 -i ../&sed-testsuite-patch;</userinput></screen>
  34. <para>Prepare Sed for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin --htmldir=/usr/share/doc/sed-&sed-version;</userinput></screen>
  36. <variablelist>
  37. <title>The meaning of the new configure option:</title>
  38. <varlistentry>
  39. <term><parameter>--htmldir</parameter></term>
  40. <listitem>
  41. <para>This sets the directory where the HTML documentation will be
  42. installed to.</para>
  43. </listitem>
  44. </varlistentry>
  45. </variablelist>
  46. <para>Compile the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>Generate the HTML documentation:</para>
  49. <screen><userinput remap="make">make html</userinput></screen>
  50. <para>To test the results, issue:</para>
  51. <screen><userinput remap="test">make check</userinput></screen>
  52. <para>Install the package:</para>
  53. <screen><userinput remap="install">make install</userinput></screen>
  54. <para>Install the HTML documentation:</para>
  55. <screen><userinput remap="install">make -C doc install-html</userinput></screen>
  56. </sect2>
  57. <sect2 id="contents-sed" role="content">
  58. <title>Contents of Sed</title>
  59. <segmentedlist>
  60. <segtitle>Installed program</segtitle>
  61. <segtitle>Installed directory</segtitle>
  62. <seglistitem>
  63. <seg>sed</seg>
  64. <seg>/usr/share/doc/sed-&sed-version;</seg>
  65. </seglistitem>
  66. </segmentedlist>
  67. <variablelist>
  68. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  69. <?dbfo list-presentation="list"?>
  70. <?dbhtml list-presentation="table"?>
  71. <varlistentry id="sed">
  72. <term><command>sed</command></term>
  73. <listitem>
  74. <para>Filters and transforms text files in a single pass</para>
  75. <indexterm zone="ch-system-sed sed">
  76. <primary sortas="b-sed">sed</primary>
  77. </indexterm>
  78. </listitem>
  79. </varlistentry>
  80. </variablelist>
  81. </sect2>
  82. </sect1>