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

Last change on this file since de6fc71 was 884b14a, checked in by Joe Ciccone <jciccone@…>, 15 years ago

Text Updates.

  • Property mode set to 100644
File size: 3.3 KB
Line 
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]>
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
24 &env-target;
25
26 <sect2 role="installation">
27 <title>Installation of Less</title>
28
29 <para os="a">Prepare Less for compilation:</para>
30
31<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
32 --prefix=/usr --sysconfdir=/etc</userinput></screen>
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
53<screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen>
54
55 <para os="h">Move <command>less</command> to
56 <filename class="directory">/bin</filename>:</para>
57
58<screen os="i"><userinput>mv -v ${CLFS}/usr/bin/less ${CLFS}/bin</userinput></screen>
59
60 </sect2>
61
62 <sect2 id="contents-less" role="content">
63 <title>Contents of Less</title>
64
65 <segmentedlist>
66 <segtitle>Installed programs</segtitle>
67
68 <seglistitem>
69 <seg>less, lessecho, and lesskey</seg>
70 </seglistitem>
71 </segmentedlist>
72
73 <variablelist>
74 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
75 <?dbfo list-presentation="list"?>
76 <?dbhtml list-presentation="table"?>
77
78 <varlistentry id="less">
79 <term><command>less</command></term>
80 <listitem>
81 <para>A file viewer or pager; it displays the contents of the given
82 file, letting the user scroll, find strings, and jump to marks</para>
83 <indexterm zone="ch-system-less less">
84 <primary sortas="b-less">less</primary>
85 </indexterm>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry id="lessecho">
90 <term><command>lessecho</command></term>
91 <listitem>
92 <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
93 and <emphasis>?</emphasis>, in filenames on Unix systems</para>
94 <indexterm zone="ch-system-less lessecho">
95 <primary sortas="b-lessecho">lessecho</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 <varlistentry id="lesskey">
101 <term><command>lesskey</command></term>
102 <listitem>
103 <para>Used to specify the key bindings for
104 <command>less</command></para>
105 <indexterm zone="ch-system-less lesskey">
106 <primary sortas="b-lesskey">lesskey</primary>
107 </indexterm>
108 </listitem>
109 </varlistentry>
110
111 </variablelist>
112
113 </sect2>
114
115</sect1>
Note: See TracBrowser for help on using the repository browser.