Files
LFS_Book/chapter06/patch.xml
Anton Maisak aa76adca87 batch typo
2018-05-24 17:53:51 +03:00

100 lines
3.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;
]>
<sect1 id="ch-system-patch" role="wrap">
<?dbhtml filename="patch.html"?>
<sect1info condition="script">
<productname>patch</productname>
<productnumber>&patch-version;</productnumber>
<address>&patch-url;</address>
</sect1info>
<title>Patch-&patch-version;</title>
<indexterm zone="ch-system-patch">
<primary sortas="a-Patch">Patch</primary>
</indexterm>
<sect2 role="package">
<title/>
<para>Пакет содержит программу предназначенную для переноса правок (изменений) между разными версиями текстовых файлов.
Информация о правке обычно содержится в отдельном файле, называемом &quot;заплаткой&quot; (<emphasis>patch</emphasis>), &quot;правкой&quot;
или &quot;файлом правки&quot; (англ. patch file).
Подобный файл, как правило, создается с помощью другой утилиты Unix — <application>diff</application>,
позволяющей автоматически извлечь информацию о различиях в тексте файлов.
Он необходим для выполнения сборки некоторых пакетов LFS.</para>
<segmentedlist>
<segtitle>&buildtime;</segtitle>
<segtitle>&diskspace;</segtitle>
<seglistitem>
<seg>&patch-ch6-sbu;</seg>
<seg>&patch-ch6-du;</seg>
</seglistitem>
</segmentedlist>
</sect2>
<sect2 role="installation">
<title>Установка пакета Patch</title>
<para>Подготовьте пакет Patch к компиляции:</para>
<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
<para>Скомпилируйте пакет:</para>
<screen><userinput remap="make">make</userinput></screen>
<para>Для выполнения тестов, выполните команду:</para>
<screen><userinput remap="test">make check</userinput></screen>
<para>Установите пакет:</para>
<screen><userinput remap="install">make install</userinput></screen>
</sect2>
<sect2 id="contents-patch" role="content">
<title>Содержимое пакета Patch</title>
<segmentedlist>
<segtitle>Установленная программа</segtitle>
<seglistitem>
<seg>patch</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Краткое описание</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="patch">
<term><command>patch</command></term>
<listitem>
<para>Modifies files according to a patch file [A patch file is
normally a difference listing created with the <command>diff</command>
program. By applying these differences to the original files,
<command>patch</command> creates the patched versions.]</para>
<indexterm zone="ch-system-patch patch">
<primary sortas="b-patch">patch</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>