| [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 |  | 
|---|
|  | 24 | <sect2 role="installation"> | 
|---|
|  | 25 | <title>Installation of Less</title> | 
|---|
|  | 26 |  | 
|---|
|  | 27 | <para os="a">Prepare Less for compilation:</para> | 
|---|
|  | 28 |  | 
|---|
| [cee2ca2] | 29 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \ | 
|---|
|  | 30 | --prefix=/usr --sysconfdir=/etc</userinput></screen> | 
|---|
| [02095ae] | 31 |  | 
|---|
|  | 32 | <variablelist os="c"> | 
|---|
|  | 33 | <title>The meaning of the configure option:</title> | 
|---|
|  | 34 |  | 
|---|
|  | 35 | <varlistentry> | 
|---|
|  | 36 | <term><parameter>--sysconfdir=/etc</parameter></term> | 
|---|
|  | 37 | <listitem> | 
|---|
|  | 38 | <para>This option tells the programs created by the package to look | 
|---|
|  | 39 | in <filename class="directory">/etc</filename> for the configuration | 
|---|
|  | 40 | files.</para> | 
|---|
|  | 41 | </listitem> | 
|---|
|  | 42 | </varlistentry> | 
|---|
|  | 43 | </variablelist> | 
|---|
|  | 44 |  | 
|---|
|  | 45 | <para os="d">Compile the package:</para> | 
|---|
|  | 46 |  | 
|---|
|  | 47 | <screen os="e"><userinput>make</userinput></screen> | 
|---|
|  | 48 |  | 
|---|
|  | 49 | <para os="f">Install the package:</para> | 
|---|
|  | 50 |  | 
|---|
| [586feb7] | 51 | <screen os="g"><userinput>make prefix=${CLFS}/usr install</userinput></screen> | 
|---|
| [02095ae] | 52 |  | 
|---|
|  | 53 | <para os="h">Move less to /bin:</para> | 
|---|
|  | 54 |  | 
|---|
| [586feb7] | 55 | <screen os="i"><userinput>mv -v ${CLFS}/usr/bin/less ${CLFS}/bin</userinput></screen> | 
|---|
| [02095ae] | 56 |  | 
|---|
|  | 57 | </sect2> | 
|---|
|  | 58 |  | 
|---|
|  | 59 | <sect2 id="contents-less" role="content"> | 
|---|
|  | 60 | <title>Contents of Less</title> | 
|---|
|  | 61 |  | 
|---|
|  | 62 | <segmentedlist> | 
|---|
|  | 63 | <segtitle>Installed programs</segtitle> | 
|---|
|  | 64 |  | 
|---|
|  | 65 | <seglistitem> | 
|---|
|  | 66 | <seg>less, lessecho, and lesskey</seg> | 
|---|
|  | 67 | </seglistitem> | 
|---|
|  | 68 | </segmentedlist> | 
|---|
|  | 69 |  | 
|---|
|  | 70 | <variablelist> | 
|---|
|  | 71 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
|  | 72 | <?dbfo list-presentation="list"?> | 
|---|
|  | 73 | <?dbhtml list-presentation="table"?> | 
|---|
|  | 74 |  | 
|---|
|  | 75 | <varlistentry id="less"> | 
|---|
|  | 76 | <term><command>less</command></term> | 
|---|
|  | 77 | <listitem> | 
|---|
|  | 78 | <para>A file viewer or pager; it displays the contents of the given | 
|---|
|  | 79 | file, letting the user scroll, find strings, and jump to marks</para> | 
|---|
|  | 80 | <indexterm zone="ch-system-less less"> | 
|---|
|  | 81 | <primary sortas="b-less">less</primary> | 
|---|
|  | 82 | </indexterm> | 
|---|
|  | 83 | </listitem> | 
|---|
|  | 84 | </varlistentry> | 
|---|
|  | 85 |  | 
|---|
|  | 86 | <varlistentry id="lessecho"> | 
|---|
|  | 87 | <term><command>lessecho</command></term> | 
|---|
|  | 88 | <listitem> | 
|---|
|  | 89 | <para>Needed to expand meta-characters, such as <emphasis>*</emphasis> | 
|---|
|  | 90 | and <emphasis>?</emphasis>, in filenames on Unix systems</para> | 
|---|
|  | 91 | <indexterm zone="ch-system-less lessecho"> | 
|---|
|  | 92 | <primary sortas="b-lessecho">lessecho</primary> | 
|---|
|  | 93 | </indexterm> | 
|---|
|  | 94 | </listitem> | 
|---|
|  | 95 | </varlistentry> | 
|---|
|  | 96 |  | 
|---|
|  | 97 | <varlistentry id="lesskey"> | 
|---|
|  | 98 | <term><command>lesskey</command></term> | 
|---|
|  | 99 | <listitem> | 
|---|
|  | 100 | <para>Used to specify the key bindings for | 
|---|
|  | 101 | <command>less</command></para> | 
|---|
|  | 102 | <indexterm zone="ch-system-less lesskey"> | 
|---|
|  | 103 | <primary sortas="b-lesskey">lesskey</primary> | 
|---|
|  | 104 | </indexterm> | 
|---|
|  | 105 | </listitem> | 
|---|
|  | 106 | </varlistentry> | 
|---|
|  | 107 |  | 
|---|
|  | 108 | </variablelist> | 
|---|
|  | 109 |  | 
|---|
|  | 110 | </sect2> | 
|---|
|  | 111 |  | 
|---|
|  | 112 | </sect1> | 
|---|