1
0

patch.xml 2.8 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-patch" role="wrap">
  8. <?dbhtml filename="patch.html"?>
  9. <sect1info condition="script">
  10. <productname>patch</productname>
  11. <productnumber>&patch-version;</productnumber>
  12. <address>&patch-url;</address>
  13. </sect1info>
  14. <title>Patch-&patch-version;</title>
  15. <indexterm zone="ch-system-patch">
  16. <primary sortas="a-Patch">Patch</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Patch package contains a program for modifying or creating files
  21. by applying a <quote>patch</quote> file typically created by the
  22. <command>diff</command> program.</para>
  23. <segmentedlist>
  24. <segtitle>&buildtime;</segtitle>
  25. <segtitle>&diskspace;</segtitle>
  26. <seglistitem>
  27. <seg>&patch-ch6-sbu;</seg>
  28. <seg>&patch-ch6-du;</seg>
  29. </seglistitem>
  30. </segmentedlist>
  31. </sect2>
  32. <sect2 role="installation">
  33. <title>Installation of Patch</title>
  34. <para>Apply a patch to prevent the test suite from running a test that
  35. requires <command>ed</command>:</para>
  36. <screen><userinput remap="pre">patch -Np1 -i ../&patch-test-patch;</userinput></screen>
  37. <para>Prepare Patch for compilation:</para>
  38. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  39. <para>Compile the package:</para>
  40. <screen><userinput remap="make">make</userinput></screen>
  41. <para>To test the results, issue:</para>
  42. <screen><userinput remap="test">make -k check</userinput></screen>
  43. <para>Install the package:</para>
  44. <screen><userinput remap="install">make install</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-patch" role="content">
  47. <title>Contents of Patch</title>
  48. <segmentedlist>
  49. <segtitle>Installed program</segtitle>
  50. <seglistitem>
  51. <seg>patch</seg>
  52. </seglistitem>
  53. </segmentedlist>
  54. <variablelist>
  55. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  56. <?dbfo list-presentation="list"?>
  57. <?dbhtml list-presentation="table"?>
  58. <varlistentry id="patch">
  59. <term><command>patch</command></term>
  60. <listitem>
  61. <para>Modifies files according to a patch file. A patch file is
  62. normally a difference listing created with the <command>diff</command>
  63. program. By applying these differences to the original files,
  64. <command>patch</command> creates the patched versions.</para>
  65. <indexterm zone="ch-system-patch patch">
  66. <primary sortas="b-patch">patch</primary>
  67. </indexterm>
  68. </listitem>
  69. </varlistentry>
  70. </variablelist>
  71. </sect2>
  72. </sect1>