| 1 | <?xml version="1.0" encoding="ISO-8859-1"?> | 
|---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" | 
|---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ | 
|---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent"> | 
|---|
| 5 | <!ENTITY % patches-entities SYSTEM "../../patches.ent"> | 
|---|
| 6 | %general-entities; | 
|---|
| 7 | %patches-entities; | 
|---|
| 8 | ]> | 
|---|
| 9 |  | 
|---|
| 10 | <sect1 id="ch-system-patch" role="wrap"> | 
|---|
| 11 | <?dbhtml filename="patch.html"?> | 
|---|
| 12 |  | 
|---|
| 13 | <title>Patch-&patch-version;</title> | 
|---|
| 14 |  | 
|---|
| 15 | <indexterm zone="ch-system-patch"> | 
|---|
| 16 | <primary sortas="a-Patch">Patch</primary> | 
|---|
| 17 | </indexterm> | 
|---|
| 18 |  | 
|---|
| 19 | <sect2 role="package"> | 
|---|
| 20 | <title/> | 
|---|
| 21 |  | 
|---|
| 22 | <para>The Patch package contains a program for modifying or creating | 
|---|
| 23 | files by applying a <quote>patch</quote> file typically created by the | 
|---|
| 24 | <command>diff</command> program.</para> | 
|---|
| 25 |  | 
|---|
| 26 | <segmentedlist> | 
|---|
| 27 | <segtitle>&dependencies;</segtitle> | 
|---|
| 28 |  | 
|---|
| 29 | <seglistitem> | 
|---|
| 30 | <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, | 
|---|
| 31 | Grep, Make, and Sed</seg> | 
|---|
| 32 | </seglistitem> | 
|---|
| 33 | </segmentedlist> | 
|---|
| 34 |  | 
|---|
| 35 | </sect2> | 
|---|
| 36 |  | 
|---|
| 37 | <sect2 role="installation"> | 
|---|
| 38 | <title>Installation of Patch</title> | 
|---|
| 39 |  | 
|---|
| 40 | <para>Prepare Patch for compilation:</para> | 
|---|
| 41 |  | 
|---|
| 42 | <screen><userinput>./configure --prefix=/usr</userinput></screen> | 
|---|
| 43 |  | 
|---|
| 44 | <para>Compile the package:</para> | 
|---|
| 45 |  | 
|---|
| 46 | <screen><userinput>make</userinput></screen> | 
|---|
| 47 |  | 
|---|
| 48 | <para>This package does not come with a test suite.</para> | 
|---|
| 49 |  | 
|---|
| 50 | <para>Install the package:</para> | 
|---|
| 51 |  | 
|---|
| 52 | <screen><userinput>make install</userinput></screen> | 
|---|
| 53 |  | 
|---|
| 54 | </sect2> | 
|---|
| 55 |  | 
|---|
| 56 | <sect2 id="contents-patch" role="content"> | 
|---|
| 57 | <title>Contents of Patch</title> | 
|---|
| 58 |  | 
|---|
| 59 | <segmentedlist> | 
|---|
| 60 | <segtitle>Installed program</segtitle> | 
|---|
| 61 |  | 
|---|
| 62 | <seglistitem> | 
|---|
| 63 | <seg>patch</seg> | 
|---|
| 64 | </seglistitem> | 
|---|
| 65 | </segmentedlist> | 
|---|
| 66 |  | 
|---|
| 67 | <variablelist> | 
|---|
| 68 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
| 69 | <?dbfo list-presentation="list"?> | 
|---|
| 70 | <?dbhtml list-presentation="table"?> | 
|---|
| 71 |  | 
|---|
| 72 | <varlistentry id="patch"> | 
|---|
| 73 | <term><command>patch</command></term> | 
|---|
| 74 | <listitem> | 
|---|
| 75 | <para>Modifies files according to a patch file. A patch file is | 
|---|
| 76 | normally a difference listing created with the <command>diff</command> | 
|---|
| 77 | program. By applying these differences to the original files, | 
|---|
| 78 | <command>patch</command> creates the patched versions.</para> | 
|---|
| 79 | <indexterm zone="ch-system-patch patch"> | 
|---|
| 80 | <primary sortas="b-patch">patch</primary> | 
|---|
| 81 | </indexterm> | 
|---|
| 82 | </listitem> | 
|---|
| 83 | </varlistentry> | 
|---|
| 84 |  | 
|---|
| 85 | </variablelist> | 
|---|
| 86 |  | 
|---|
| 87 | </sect2> | 
|---|
| 88 |  | 
|---|
| 89 | </sect1> | 
|---|