Ignore:
Timestamp:
02/03/2006 08:54:03 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
6a82dd9
Parents:
45b032f
Message:

Indenting chapter 6, part 4

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/findutils.xml

    r45b032f r54e422c1  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
     2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
     3  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
    34  <!ENTITY % general-entities SYSTEM "../general.ent">
    45  %general-entities;
    56]>
     7
    68<sect1 id="ch-system-findutils" role="wrap">
    7 <title>Findutils-&findutils-version;</title>
    8 <?dbhtml filename="findutils.html"?>
     9  <?dbhtml filename="findutils.html"?>
    910
    10 <indexterm zone="ch-system-findutils"><primary sortas="a-Findutils">Findutils</primary></indexterm>
     11  <title>Findutils-&findutils-version;</title>
    1112
    12 <sect2 role="package"><title/>
    13 <para>The Findutils package contains programs to find files. These programs
    14 are provided to recursively search through a directory tree and to
    15 create, maintain, and search a database (often faster than the recursive
    16 find, but unreliable if the database has not been recently updated).</para>
     13  <indexterm zone="ch-system-findutils">
     14    <primary sortas="a-Findutils">Findutils</primary>
     15  </indexterm>
    1716
    18 <segmentedlist>
    19 <segtitle>&buildtime;</segtitle>
    20 <segtitle>&diskspace;</segtitle>
    21 <seglistitem><seg>0.1 SBU</seg><seg>9.4 MB</seg></seglistitem>
    22 </segmentedlist>
     17  <sect2 role="package">
     18    <title/>
    2319
    24 <segmentedlist>
    25 <segtitle>&dependencies;</segtitle>
    26 <seglistitem><seg>Bash, Binutils, Coreutils,
    27 Diffutils, GCC, Gettext, Glibc, Grep, Make and Sed</seg></seglistitem>
    28 </segmentedlist>
    29 </sect2>
     20    <para>The Findutils package contains programs to find files. These programs
     21    are provided to recursively search through a directory tree and to
     22    create, maintain, and search a database (often faster than the recursive
     23    find, but unreliable if the database has not been recently updated).</para>
    3024
    31 <sect2 role="installation">
    32 <title>Installation of Findutils</title>
     25    <segmentedlist>
     26      <segtitle>&buildtime;</segtitle>
     27      <segtitle>&diskspace;</segtitle>
    3328
    34 <para>Prepare Findutils for compilation:</para>
     29      <seglistitem>
     30        <seg>0.1 SBU</seg>
     31        <seg>9.4 MB</seg>
     32      </seglistitem>
     33    </segmentedlist>
     34
     35    <segmentedlist>
     36      <segtitle>&dependencies;</segtitle>
     37
     38      <seglistitem>
     39        <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep,
     40        Make and Sed</seg>
     41      </seglistitem>
     42    </segmentedlist>
     43
     44  </sect2>
     45
     46  <sect2 role="installation">
     47    <title>Installation of Findutils</title>
     48
     49    <para>Prepare Findutils for compilation:</para>
    3550
    3651<screen><userinput>./configure --prefix=/usr --libexecdir=/usr/lib/findutils \
    3752    --localstatedir=/var/lib/locate</userinput></screen>
    3853
    39 <para>The meaning of the configure options:</para>
     54    <variablelist>
     55      <title>The meaning of the configure options:</title>
    4056
    41 <variablelist>
    42 <varlistentry>
    43 <term><parameter>--localstatedir</parameter></term>
    44 <listitem><para>This option changes the location of the <command>locate</command>
    45 database to be in <filename class="directory">/var/lib/locate</filename>, which
    46 is FHS-compliant.</para></listitem>
    47 </varlistentry>
    48 </variablelist>
     57      <varlistentry>
     58        <term><parameter>--localstatedir</parameter></term>
     59        <listitem>
     60          <para>This option changes the location of the <command>locate</command>
     61          database to be in <filename class="directory">/var/lib/locate</filename>,
     62          which is FHS-compliant.</para>
     63        </listitem>
     64      </varlistentry>
    4965
    50 <para>Compile the package:</para>
     66    </variablelist>
     67
     68    <para>Compile the package:</para>
    5169
    5270<screen><userinput>make</userinput></screen>
    5371
    54 <para>To test the results, issue:
    55 <userinput>make check</userinput>.</para>
     72    <para>To test the results, issue:
     73    <userinput>make check</userinput>.</para>
    5674
    57 <para>Install the package:</para>
     75    <para>Install the package:</para>
    5876
    5977<screen><userinput>make install</userinput></screen>
    6078
    61 </sect2>
     79  </sect2>
    6280
    63 <sect2 id="contents-findutils" role="content"><title>Contents of Findutils</title>
     81  <sect2 id="contents-findutils" role="content">
     82    <title>Contents of Findutils</title>
    6483
    65 <segmentedlist>
    66 <segtitle>Installed programs</segtitle>
    67 <seglistitem><seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg></seglistitem>
    68 </segmentedlist>
     84    <segmentedlist>
     85      <segtitle>Installed programs</segtitle>
    6986
    70 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
    71 <?dbfo list-presentation="list"?>
    72 <?dbhtml list-presentation="table"?>
     87      <seglistitem>
     88        <seg>bigram, code, find, frcode, locate, updatedb, and xargs</seg>
     89      </seglistitem>
     90    </segmentedlist>
    7391
    74 <varlistentry id="bigram">
    75 <term><command>bigram</command></term>
    76 <listitem>
    77 <para>Was formerly used to produce <command>locate</command> databases</para>
    78 <indexterm zone="ch-system-findutils bigram"><primary sortas="b-bigram">bigram</primary></indexterm>
    79 </listitem>
    80 </varlistentry>
     92    <variablelist>
     93      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
     94      <?dbfo list-presentation="list"?>
     95      <?dbhtml list-presentation="table"?>
    8196
    82 <varlistentry id="code">
    83 <term><command>code</command></term>
    84 <listitem>
    85 <para>Was formerly used to produce <command>locate</command>
    86 databases; it is the ancestor of <command>frcode</command>.</para>
    87 <indexterm zone="ch-system-findutils code"><primary sortas="b-code">code</primary></indexterm>
    88 </listitem>
    89 </varlistentry>
     97      <varlistentry id="bigram">
     98        <term><command>bigram</command></term>
     99        <listitem>
     100          <para>Was formerly used to produce <command>locate</command>
     101          databases</para>
     102          <indexterm zone="ch-system-findutils bigram">
     103            <primary sortas="b-bigram">bigram</primary>
     104          </indexterm>
     105        </listitem>
     106      </varlistentry>
    90107
    91 <varlistentry id="find">
    92 <term><command>find</command></term>
    93 <listitem>
    94 <para>Searches given directory trees for files matching the specified criteria</para>
    95 <indexterm zone="ch-system-findutils find"><primary sortas="b-find">find</primary></indexterm>
    96 </listitem>
    97 </varlistentry>
     108      <varlistentry id="code">
     109        <term><command>code</command></term>
     110        <listitem>
     111          <para>Was formerly used to produce <command>locate</command>
     112          databases; it is the ancestor of <command>frcode</command>.</para>
     113          <indexterm zone="ch-system-findutils code">
     114            <primary sortas="b-code">code</primary>
     115          </indexterm>
     116        </listitem>
     117      </varlistentry>
    98118
    99 <varlistentry id="frcode">
    100 <term><command>frcode</command></term>
    101 <listitem>
    102 <para>Is called by <command>updatedb</command> to compress the list of file names; it uses
    103 front-compression, reducing the database size by a factor of four to
    104 five.</para>
    105 <indexterm zone="ch-system-findutils frcode"><primary sortas="b-frcode">frcode</primary></indexterm>
    106 </listitem>
    107 </varlistentry>
     119      <varlistentry id="find">
     120        <term><command>find</command></term>
     121        <listitem>
     122          <para>Searches given directory trees for files matching the specified
     123          criteria</para>
     124          <indexterm zone="ch-system-findutils find">
     125            <primary sortas="b-find">find</primary>
     126          </indexterm>
     127        </listitem>
     128      </varlistentry>
    108129
    109 <varlistentry id="locate">
    110 <term><command>locate</command></term>
    111 <listitem>
    112 <para>Searches through a database of file names and reports the names
    113 that contain a given string or match a given pattern</para>
    114 <indexterm zone="ch-system-findutils locate"><primary sortas="b-locate">locate</primary></indexterm>
    115 </listitem>
    116 </varlistentry>
     130      <varlistentry id="frcode">
     131        <term><command>frcode</command></term>
     132        <listitem>
     133          <para>Is called by <command>updatedb</command> to compress the list
     134          of file names; it uses front-compression, reducing the database size
     135          by a factor of four to five.</para>
     136          <indexterm zone="ch-system-findutils frcode">
     137            <primary sortas="b-frcode">frcode</primary>
     138          </indexterm>
     139        </listitem>
     140      </varlistentry>
    117141
    118 <varlistentry id="updatedb">
    119 <term><command>updatedb</command></term>
    120 <listitem>
    121 <para>Updates the <command>locate</command> database; it scans
    122 the entire file system (including other file systems that are currently mounted,
    123 unless told not to) and puts every file name it finds into the database</para>
    124 <indexterm zone="ch-system-findutils updatedb"><primary sortas="b-updatedb">updatedb</primary></indexterm>
    125 </listitem>
    126 </varlistentry>
     142      <varlistentry id="locate">
     143        <term><command>locate</command></term>
     144        <listitem>
     145          <para>Searches through a database of file names and reports the names
     146          that contain a given string or match a given pattern</para>
     147          <indexterm zone="ch-system-findutils locate">
     148            <primary sortas="b-locate">locate</primary>
     149          </indexterm>
     150        </listitem>
     151      </varlistentry>
    127152
    128 <varlistentry id="xargs">
    129 <term><command>xargs</command></term>
    130 <listitem>
    131 <para>Can be used to apply a given command to a list of files</para>
    132 <indexterm zone="ch-system-findutils xargs"><primary sortas="b-xargs">xargs</primary></indexterm>
    133 </listitem>
    134 </varlistentry>
    135 </variablelist>
     153      <varlistentry id="updatedb">
     154      <term><command>updatedb</command></term>
     155        <listitem>
     156          <para>Updates the <command>locate</command> database; it scans the
     157          entire file system (including other file systems that are currently
     158          mounted, unless told not to) and puts every file name it finds into
     159          the database</para>
     160          <indexterm zone="ch-system-findutils updatedb">
     161            <primary sortas="b-updatedb">updatedb</primary>
     162          </indexterm>
     163        </listitem>
     164      </varlistentry>
    136165
    137 </sect2>
     166      <varlistentry id="xargs">
     167        <term><command>xargs</command></term>
     168        <listitem>
     169          <para>Can be used to apply a given command to a list of files</para>
     170          <indexterm zone="ch-system-findutils xargs">
     171            <primary sortas="b-xargs">xargs</primary>
     172          </indexterm>
     173        </listitem>
     174      </varlistentry>
     175
     176    </variablelist>
     177
     178  </sect2>
    138179
    139180</sect1>
    140 
Note: See TracChangeset for help on using the changeset viewer.