From 6a82dd9a1814badb87e18df165474a8b89a39b73 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sat, 4 Feb 2006 13:28:41 +0000 Subject: Indenting chapter 6, part 5 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7344 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/grep.xml | 163 ++++++++++++++++++++++++++++++----------------------- 1 file changed, 94 insertions(+), 69 deletions(-) (limited to 'chapter06/grep.xml') diff --git a/chapter06/grep.xml b/chapter06/grep.xml index f050a89a1..84742ae30 100644 --- a/chapter06/grep.xml +++ b/chapter06/grep.xml @@ -1,98 +1,123 @@ - %general-entities; ]> - -Grep-&grep-version; - - -Grep - -<para>The Grep package contains programs for searching through files.</para> - -<segmentedlist> -<segtitle>&buildtime;</segtitle> -<segtitle>&diskspace;</segtitle> -<seglistitem><seg>0.1 SBU</seg><seg>4.5 MB</seg></seglistitem> -</segmentedlist> +<sect1 id="ch-system-grep" role="wrap"> + <?dbhtml filename="grep.html"?> -<segmentedlist> -<segtitle>&dependencies;</segtitle> -<seglistitem><seg>Bash, Binutils, Coreutils, -Diffutils, GCC, Gettext, Glibc, Make, Sed, and Texinfo</seg></seglistitem> -</segmentedlist> -</sect2> + <title>Grep-&grep-version; - -Installation of Grep + + Grep + -The current Grep package has many bugs, especially in the support of -multibyte locales. RedHat fixed some of them with the following patch: + + -<screen><userinput>patch -Np1 -i ../&grep-fixes-patch;</userinput></screen> + <para>The Grep package contains programs for searching through files.</para> -<para>In order for the tests added by this patch to pass, the permissions for -the test file have to be changed:</para> + <segmentedlist> + <segtitle>&buildtime;</segtitle> + <segtitle>&diskspace;</segtitle> -<screen><userinput>chmod +x tests/fmbtest.sh</userinput></screen> + <seglistitem> + <seg>0.1 SBU</seg> + <seg>4.5 MB</seg> + </seglistitem> + </segmentedlist> -<para>Prepare Grep for compilation:</para> + <segmentedlist> + <segtitle>&dependencies;</segtitle> -<screen><userinput>./configure --prefix=/usr --bindir=/bin</userinput></screen> + <seglistitem> + <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Make, + Sed, and Texinfo</seg> + </seglistitem> + </segmentedlist> -<para>Compile the package:</para> + </sect2> -<screen><userinput>make</userinput></screen> + <sect2 role="installation"> + <title>Installation of Grep -To test the results, issue: -make check. + The current Grep package has many bugs, especially in the support of + multibyte locales. RedHat fixed some of them with the following patch: -Install the package: +patch -Np1 -i ../&grep-fixes-patch; -make install + In order for the tests added by this patch to pass, the permissions for + the test file have to be changed: - +chmod +x tests/fmbtest.sh + Prepare Grep for compilation: -Contents of Grep +./configure --prefix=/usr --bindir=/bin - -Installed programs -egrep (link to grep), fgrep (link to grep), and grep - + Compile the package: -Short Descriptions - - +make - -egrep - -Prints lines matching an extended regular expression -egrep - - + To test the results, issue: + make check. - -fgrep - -Prints lines matching a list of fixed strings -fgrep - - + Install the package: - -grep - -Prints lines matching a basic regular expression -grep - - - +make install - + + + + Contents of Grep + + + Installed programs + + + egrep (link to grep), fgrep (link to grep), and grep + + + + + Short Descriptions + + + + + egrep + + Prints lines matching an extended regular expression + + egrep + + + + + + fgrep + + Prints lines matching a list of fixed strings + + fgrep + + + + + + grep + + Prints lines matching a basic regular expression + + grep + + + + + + + - -- cgit v1.2.3-54-g00ecf