source: clfs-sysroot/BOOK/final-system/common/less.xml@ 3f110b5

Last change on this file since 3f110b5 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 3.3 KB
RevLine 
[02095ae]1<?xml version="1.0" encoding="ISO-8859-1"?>
[c439b8a]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[02095ae]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-less" role="wrap">
9 <?dbhtml filename="less.html"?>
10
11 <title>Less-&less-version;</title>
12
13 <indexterm zone="ch-system-less">
14 <primary sortas="a-Less">Less</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Less package contains a text file viewer.</para>
21
22 </sect2>
23
[12e6567]24 &env-target;
25
[02095ae]26 <sect2 role="installation">
27 <title>Installation of Less</title>
28
29 <para os="a">Prepare Less for compilation:</para>
30
[cee2ca2]31<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
32 --prefix=/usr --sysconfdir=/etc</userinput></screen>
[02095ae]33
34 <variablelist os="c">
35 <title>The meaning of the configure option:</title>
36
37 <varlistentry>
38 <term><parameter>--sysconfdir=/etc</parameter></term>
39 <listitem>
40 <para>This option tells the programs created by the package to look
41 in <filename class="directory">/etc</filename> for the configuration
42 files.</para>
43 </listitem>
44 </varlistentry>
45 </variablelist>
46
47 <para os="d">Compile the package:</para>
48
49<screen os="e"><userinput>make</userinput></screen>
50
51 <para os="f">Install the package:</para>
52
[586feb7]53<screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
[02095ae]54
55 <para os="h">Move less to /bin:</para>
56
[586feb7]57<screen os="i"><userinput>mv -v ${CLFS}/usr/bin/less ${CLFS}/bin</userinput></screen>
[02095ae]58
59 </sect2>
60
61 <sect2 id="contents-less" role="content">
62 <title>Contents of Less</title>
63
64 <segmentedlist>
65 <segtitle>Installed programs</segtitle>
66
67 <seglistitem>
68 <seg>less, lessecho, and lesskey</seg>
69 </seglistitem>
70 </segmentedlist>
71
72 <variablelist>
73 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
74 <?dbfo list-presentation="list"?>
75 <?dbhtml list-presentation="table"?>
76
77 <varlistentry id="less">
78 <term><command>less</command></term>
79 <listitem>
80 <para>A file viewer or pager; it displays the contents of the given
81 file, letting the user scroll, find strings, and jump to marks</para>
82 <indexterm zone="ch-system-less less">
83 <primary sortas="b-less">less</primary>
84 </indexterm>
85 </listitem>
86 </varlistentry>
87
88 <varlistentry id="lessecho">
89 <term><command>lessecho</command></term>
90 <listitem>
91 <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
92 and <emphasis>?</emphasis>, in filenames on Unix systems</para>
93 <indexterm zone="ch-system-less lessecho">
94 <primary sortas="b-lessecho">lessecho</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="lesskey">
100 <term><command>lesskey</command></term>
101 <listitem>
102 <para>Used to specify the key bindings for
103 <command>less</command></para>
104 <indexterm zone="ch-system-less lesskey">
105 <primary sortas="b-lesskey">lesskey</primary>
106 </indexterm>
107 </listitem>
108 </varlistentry>
109
110 </variablelist>
111
112 </sect2>
113
114</sect1>
Note: See TracBrowser for help on using the repository browser.