sed.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-sed" xreflabel="Sed" role="wrap">
  7. <title>Sed-&sed-version;</title>
  8. <?dbhtml filename="sed.html"?>
  9. <indexterm zone="ch-system-sed"><primary sortas="a-Sed">Sed</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Sed package contains a stream editor.</para>
  12. <segmentedlist>
  13. <segtitle>&buildtime;</segtitle>
  14. <segtitle>&diskspace;</segtitle>
  15. <seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
  16. </segmentedlist>
  17. <segmentedlist>
  18. <segtitle>Sed installation depends on</segtitle>
  19. <seglistitem><seg>Bash, Binutils, Coreutils,
  20. Diffutils, GCC, Gettext, Glibc, Grep, Make, Texinfo</seg></seglistitem>
  21. </segmentedlist>
  22. </sect2>
  23. <sect2 role="installation">
  24. <title>Installation of Sed</title>
  25. <para>A bug in this version of sed changes permissions on files modified using
  26. the in-place function (<userinput>-i</userinput> flag). Apply a patch to ensure
  27. that the original file permissions are preserved.</para>
  28. <screen><userinput>patch -Np1 -i ../sed-&sed-version;-permissions-1.patch
  29. </userinput></screen>
  30. <para>Prepare Sed for compilation:</para>
  31. <screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
  32. <para>Compile the package:</para>
  33. <screen><userinput>make</userinput></screen>
  34. <para>To test the results, issue:
  35. <userinput>make check</userinput>.</para>
  36. <para>Now install the package:</para>
  37. <screen><userinput>make install</userinput></screen>
  38. </sect2>
  39. <sect2 id="contents-sed" role="content"><title>Contents of Sed</title>
  40. <segmentedlist>
  41. <segtitle>Installed program</segtitle>
  42. <seglistitem><seg>sed</seg></seglistitem>
  43. </segmentedlist>
  44. <variablelist><title>Short descriptions</title>
  45. <varlistentry id="sed">
  46. <term><command>sed</command></term>
  47. <listitem>
  48. <indexterm zone="ch-system-sed sed"><primary sortas="b-sed">sed</primary></indexterm>
  49. <para>is used to filter and transform text files in a single pass.</para>
  50. </listitem>
  51. </varlistentry>
  52. </variablelist>
  53. </sect2>
  54. </sect1>