bc: remove an extra quote
[linux_from_scratch.git] / BOOK / chapter08 / less.xml
blob237cf1e153043d8eaa32cf1bf2baf53e6bbdd086
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4   <!ENTITY % general-entities SYSTEM "../general.ent">
5   %general-entities;
6 ]>
8 <sect1 id="ch-system-less" role="wrap">
9   <?dbhtml filename="less.html"?>
11   <sect1info condition="script">
12     <productname>less</productname>
13     <productnumber>&less-version;</productnumber>
14     <address>&less-url;</address>
15   </sect1info>
17   <title>Less-&less-version;</title>
19   <indexterm zone="ch-system-less">
20     <primary sortas="a-Less">Less</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>The Less package contains a text file viewer.</para>
28     <segmentedlist>
29       <segtitle>&buildtime;</segtitle>
30       <segtitle>&diskspace;</segtitle>
32       <seglistitem>
33         <seg>&less-fin-sbu;</seg>
34         <seg>&less-fin-du;</seg>
35       </seglistitem>
36     </segmentedlist>
38   </sect2>
40   <sect2 role="installation">
41     <title>Installation of Less</title>
43     <para>Prepare Less for compilation:</para>
45 <screen><userinput remap="configure">./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
47     <variablelist>
48       <title>The meaning of the configure options:</title>
50       <varlistentry>
51         <term><parameter>--sysconfdir=/etc</parameter></term>
52         <listitem>
53           <para>This option tells the programs created by the package to look
54           in <filename class="directory">/etc</filename> for the configuration
55           files.</para>
56         </listitem>
57       </varlistentry>
59     </variablelist>
61     <para>Compile the package:</para>
63 <screen><userinput remap="make">make</userinput></screen>
65     <para>This package does not come with a test suite.</para>
67     <para>Install the package:</para>
69 <screen><userinput remap="install">make install</userinput></screen>
71   </sect2>
73   <sect2 id="contents-less" role="content">
74     <title>Contents of Less</title>
76     <segmentedlist>
77       <segtitle>Installed programs</segtitle>
79       <seglistitem>
80         <seg>less, lessecho, and lesskey</seg>
81       </seglistitem>
82     </segmentedlist>
84     <variablelist>
85       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86       <?dbfo list-presentation="list"?>
87       <?dbhtml list-presentation="table"?>
89       <varlistentry id="less">
90         <term><command>less</command></term>
91         <listitem>
92           <para>A file viewer or pager; it displays the contents of the given
93           file, letting the user scroll, find strings, and jump to marks</para>
94           <indexterm zone="ch-system-less less">
95             <primary sortas="b-less">less</primary>
96           </indexterm>
97         </listitem>
98       </varlistentry>
100       <varlistentry id="lessecho">
101         <term><command>lessecho</command></term>
102         <listitem>
103           <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
104           and <emphasis>?</emphasis>, in filenames on Unix systems</para>
105           <indexterm zone="ch-system-less lessecho">
106             <primary sortas="b-lessecho">lessecho</primary>
107           </indexterm>
108         </listitem>
109       </varlistentry>
111       <varlistentry id="lesskey">
112         <term><command>lesskey</command></term>
113         <listitem>
114           <para>Used to specify the key bindings for <command>less</command></para>
115           <indexterm zone="ch-system-less lesskey">
116             <primary sortas="b-lesskey">lesskey</primary>
117           </indexterm>
118         </listitem>
119       </varlistentry>
121     </variablelist>
123   </sect2>
125 </sect1>