mirror of
https://github.com/avmaisak/LFS_Book.git
synced 2026-01-14 02:00:45 +00:00
Revision: 11446 Author: bdubbs Date: 12 августа 2018 г. 19:35:49 Message: Add LANG to vim test instructions. Ensure grep tests run to completion. Run gcc tests in Chapter 6 as a non-privileged user. Move shadow to before gcc so the gcc tests can use su to run as a non-privileged user. Add perl Configure options in Chapter 5 to ensure no host system libraries are used. Update minimum make version to 4.0 required by glibc-2.28. Update bzip2 url to a new location. Update to linux-4.17.14. ---- Modified : /trunk/BOOK/appendices/dependencies.xml Modified : /trunk/BOOK/chapter01/changelog.xml Modified : /trunk/BOOK/chapter02/hostreqs.xml Modified : /trunk/BOOK/chapter03/packages.xml Modified : /trunk/BOOK/chapter05/perl.xml Modified : /trunk/BOOK/chapter06/chapter06.xml Modified : /trunk/BOOK/chapter06/gcc.xml Modified : /trunk/BOOK/chapter06/grep.xml Modified : /trunk/BOOK/chapter06/vim.xml Modified : /trunk/BOOK/general.ent Modified : /trunk/BOOK/packages.ent
112 lines
3.7 KiB
XML
112 lines
3.7 KiB
XML
<?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-grep" role="wrap">
|
|
<?dbhtml filename="grep.html"?>
|
|
|
|
<sect1info condition="script">
|
|
<productname>grep</productname>
|
|
<productnumber>&grep-version;</productnumber>
|
|
<address>&grep-url;</address>
|
|
</sect1info>
|
|
|
|
<title>Grep-&grep-version;</title>
|
|
|
|
<indexterm zone="ch-system-grep">
|
|
<primary sortas="a-Grep">Grep</primary>
|
|
</indexterm>
|
|
|
|
<sect2 role="package">
|
|
<title/>
|
|
|
|
<para>Пакет содержит программу, которая находит на вводе строки, отвечающие заданному регулярному выражению, и выводит их, если вывод не отменён специальным ключом. Пакет используется в процедурах сборки для большинства пакетов.</para>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>&grep-ch6-sbu;</seg>
|
|
<seg>&grep-ch6-du;</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Установка пакета Grep</title>
|
|
|
|
<para>Подготовьте пакет Grep к компиляции:</para>
|
|
|
|
<screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
|
|
|
|
<para>Скомпилируйте пакет:</para>
|
|
|
|
<screen><userinput remap="make">make</userinput></screen>
|
|
|
|
<para>Для выполнения тестов, выполните команду:</para>
|
|
|
|
<screen><userinput remap="test">make -k check</userinput></screen>
|
|
|
|
<para>Установите пакет:</para>
|
|
|
|
<screen><userinput remap="install">make install</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
<sect2 id="contents-grep" role="content">
|
|
<title>Содержимое пакета Grep</title>
|
|
|
|
<segmentedlist>
|
|
<segtitle>Установленные программы</segtitle>
|
|
|
|
<seglistitem>
|
|
<seg>egrep, fgrep, and grep</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
|
|
<variablelist>
|
|
<bridgehead renderas="sect3">Краткое описание</bridgehead>
|
|
<?dbfo list-presentation="list"?>
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
<varlistentry id="egrep">
|
|
<term><command>egrep</command></term>
|
|
<listitem>
|
|
<para>Печать строк, соответствующих расширенному регулярному выражению</para>
|
|
<indexterm zone="ch-system-grep egrep">
|
|
<primary sortas="b-egrep">egrep</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="fgrep">
|
|
<term><command>fgrep</command></term>
|
|
<listitem>
|
|
<para>Печать строк, соответствующих списку фиксированных строк</para>
|
|
<indexterm zone="ch-system-grep fgrep">
|
|
<primary sortas="b-fgrep">fgrep</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry id="grep">
|
|
<term><command>grep</command></term>
|
|
<listitem>
|
|
<para>Печать строк, соответствующих базовому регулярному выражению</para>
|
|
<indexterm zone="ch-system-grep grep">
|
|
<primary sortas="b-grep">grep</primary>
|
|
</indexterm>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|