sed.xml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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-tools-sed" role="wrap">
  7. <title>Sed-&sed-version;</title>
  8. <?dbhtml filename="sed.html"?>
  9. <indexterm zone="ch-tools-sed">
  10. <primary sortas="a-Sed">Sed</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <sect2 role="package"><title/>
  13. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/sed.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
  14. <segmentedlist>
  15. <segtitle>&buildtime;</segtitle>
  16. <segtitle>&diskspace;</segtitle>
  17. <seglistitem><seg>0.2 SBU</seg><seg>5.2 MB</seg></seglistitem>
  18. </segmentedlist>
  19. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/sed.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
  20. </sect2>
  21. <sect2 role="installation">
  22. <title>Installation of Sed</title>
  23. <para>A bug in this version of sed changes permissions on files modified using
  24. the in-place function (<parameter>-i</parameter> flag). Apply a patch to ensure
  25. that the original file permissions are preserved.</para>
  26. <screen><userinput>patch -Np1 -i ../sed-&sed-version;-permissions-1.patch</userinput></screen>
  27. <para>Prepare Sed for compilation:</para>
  28. <screen><userinput>./configure --prefix=/tools</userinput></screen>
  29. <para>Compile the program:</para>
  30. <screen><userinput>make</userinput></screen>
  31. <para>(If you insist on testing the results, then issue:
  32. <userinput>make check</userinput>.)</para>
  33. <para>Then install it and its documentation:</para>
  34. <screen><userinput>make install</userinput></screen>
  35. </sect2>
  36. <sect2 role="content"><title/>
  37. <para>The details on this package are found in <xref linkend="contents-sed"/>.</para>
  38. </sect2>
  39. </sect1>