source: BOOK/final-system/common/patch.xml@ 9e2e6ae

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 9e2e6ae was 9d2405f, checked in by Jonathan Norman <jon@…>, 13 years ago

Enabled Patch's test suite and added LFS's patch test patch

  • Property mode set to 100644
File size: 2.3 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-patch" role="wrap">
9 <?dbhtml filename="patch.html"?>
10
11 <title>Patch-&patch-version;</title>
12
13 <indexterm zone="ch-system-patch">
14 <primary sortas="a-Patch">Patch</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Patch package contains a program for modifying or creating
21 files by applying a <quote>patch</quote> file typically created by the
22 <command>diff</command> program.</para>
23
24 </sect2>
25
26 <sect2 role="installation">
27 <title>Installation of Patch</title>
28
[9d2405f]29 <para os="p1">The following patch removes tests that require Ed:</para>
30
31<screen os="p2"><userinput>patch -Np1 -i ../&patch-test-patch;</userinput></screen>
32
[e0e40d3]33 <para os="a">Prepare Patch for compilation:</para>
[3f8be484]34
[e0e40d3]35<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
[3f8be484]36
[e0e40d3]37 <para os="c">Compile the package:</para>
[3f8be484]38
[e0e40d3]39<screen os="d"><userinput>make</userinput></screen>
[3f8be484]40
[9d2405f]41 <para os="e">To test the results, issue: <userinput>make check</userinput>.</para>
[3f8be484]42
[e0e40d3]43 <para os="f">Install the package:</para>
[3f8be484]44
[e0e40d3]45<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]46
47 </sect2>
48
49 <sect2 id="contents-patch" role="content">
50 <title>Contents of Patch</title>
51
52 <segmentedlist>
53 <segtitle>Installed program</segtitle>
54
55 <seglistitem>
56 <seg>patch</seg>
57 </seglistitem>
58 </segmentedlist>
59
60 <variablelist>
61 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
62 <?dbfo list-presentation="list"?>
63 <?dbhtml list-presentation="table"?>
64
65 <varlistentry id="patch">
66 <term><command>patch</command></term>
67 <listitem>
68 <para>Modifies files according to a patch file. A patch file is
69 normally a difference listing created with the <command>diff</command>
70 program. By applying these differences to the original files,
71 <command>patch</command> creates the patched versions.</para>
72 <indexterm zone="ch-system-patch patch">
73 <primary sortas="b-patch">patch</primary>
74 </indexterm>
75 </listitem>
76 </varlistentry>
77
78 </variablelist>
79
80 </sect2>
81
82</sect1>
Note: See TracBrowser for help on using the repository browser.