source: chapter06/grep.xml@ d22a5031

Last change on this file since d22a5031 was 2791a8e, checked in by Matthew Burgess <matthew@…>, 17 years ago

Update the list of installed programs and libraries for several packages

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8125 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 3.1 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6370fa6]7
[6a82dd9]8<sect1 id="ch-system-grep" role="wrap">
9 <?dbhtml filename="grep.html"?>
[673b0d8]10
[6a82dd9]11 <title>Grep-&grep-version;</title>
[3554fa3a]12
[6a82dd9]13 <indexterm zone="ch-system-grep">
14 <primary sortas="a-Grep">Grep</primary>
15 </indexterm>
[73aedd1d]16
[6a82dd9]17 <sect2 role="package">
18 <title/>
[fa21b3d]19
[6a82dd9]20 <para>The Grep package contains programs for searching through files.</para>
[fa21b3d]21
[6a82dd9]22 <segmentedlist>
23 <segtitle>&buildtime;</segtitle>
24 <segtitle>&diskspace;</segtitle>
[fa21b3d]25
[6a82dd9]26 <seglistitem>
[e4a5635]27 <seg>&grep-ch6-sbu;</seg>
28 <seg>&grep-ch6-du;</seg>
[6a82dd9]29 </seglistitem>
30 </segmentedlist>
[fa21b3d]31
[6a82dd9]32 </sect2>
[73aedd1d]33
[6a82dd9]34 <sect2 role="installation">
35 <title>Installation of Grep</title>
[73aedd1d]36
[6a82dd9]37 <para>The current Grep package has many bugs, especially in the support of
38 multibyte locales. RedHat fixed some of them with the following patch:</para>
[73aedd1d]39
[6a82dd9]40<screen><userinput>patch -Np1 -i ../&grep-fixes-patch;</userinput></screen>
[73aedd1d]41
[6a82dd9]42 <para>In order for the tests added by this patch to pass, the permissions for
43 the test file have to be changed:</para>
[73aedd1d]44
[6a82dd9]45<screen><userinput>chmod +x tests/fmbtest.sh</userinput></screen>
[6370fa6]46
[6a82dd9]47 <para>Prepare Grep for compilation:</para>
[5888299]48
[6a82dd9]49<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen>
[673b0d8]50
[6a82dd9]51 <para>Compile the package:</para>
[81fd230]52
[6a82dd9]53<screen><userinput>make</userinput></screen>
[81fd230]54
[6a82dd9]55 <para>To test the results, issue:
56 <userinput>make check</userinput>.</para>
[81fd230]57
[6a82dd9]58 <para>Install the package:</para>
[81fd230]59
[6a82dd9]60<screen><userinput>make install</userinput></screen>
[673b0d8]61
[6a82dd9]62 </sect2>
63
64 <sect2 id="contents-grep" role="content">
65 <title>Contents of Grep</title>
66
67 <segmentedlist>
68 <segtitle>Installed programs</segtitle>
69
70 <seglistitem>
[2791a8e]71 <seg>egrep, fgrep, and grep</seg>
[6a82dd9]72 </seglistitem>
73 </segmentedlist>
74
75 <variablelist>
76 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
77 <?dbfo list-presentation="list"?>
78 <?dbhtml list-presentation="table"?>
79
80 <varlistentry id="egrep">
81 <term><command>egrep</command></term>
82 <listitem>
83 <para>Prints lines matching an extended regular expression</para>
84 <indexterm zone="ch-system-grep egrep">
85 <primary sortas="b-egrep">egrep</primary>
86 </indexterm>
87 </listitem>
88 </varlistentry>
89
90 <varlistentry id="fgrep">
91 <term><command>fgrep</command></term>
92 <listitem>
93 <para>Prints lines matching a list of fixed strings</para>
94 <indexterm zone="ch-system-grep fgrep">
95 <primary sortas="b-fgrep">fgrep</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="grep">
101 <term><command>grep</command></term>
102 <listitem>
103 <para>Prints lines matching a basic regular expression</para>
104 <indexterm zone="ch-system-grep grep">
105 <primary sortas="b-grep">grep</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 </variablelist>
111
112 </sect2>
[673b0d8]113
114</sect1>
Note: See TracBrowser for help on using the repository browser.