patch.xml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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>Prepare Patch for compilation:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>Compile the package:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>To test the results, issue:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <para>Install the package:</para>
  41. <screen><userinput remap="install">make install</userinput></screen>
  42. </sect2>
  43. <sect2 id="contents-patch" role="content">
  44. <title>Contents of Patch</title>
  45. <segmentedlist>
  46. <segtitle>Installed program</segtitle>
  47. <seglistitem>
  48. <seg>patch</seg>
  49. </seglistitem>
  50. </segmentedlist>
  51. <variablelist>
  52. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  53. <?dbfo list-presentation="list"?>
  54. <?dbhtml list-presentation="table"?>
  55. <varlistentry id="patch">
  56. <term><command>patch</command></term>
  57. <listitem>
  58. <para>Modifies files according to a patch file. A patch file is
  59. normally a difference listing created with the <command>diff</command>
  60. program. By applying these differences to the original files,
  61. <command>patch</command> creates the patched versions.</para>
  62. <indexterm zone="ch-system-patch patch">
  63. <primary sortas="b-patch">patch</primary>
  64. </indexterm>
  65. </listitem>
  66. </varlistentry>
  67. </variablelist>
  68. </sect2>
  69. </sect1>