less.xml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <sect1 id="ch-system-less" role="wrap">
  8. <?dbhtml filename="less.html"?>
  9. <sect1info condition="script">
  10. <productname>less</productname>
  11. <productnumber>&less-version;</productnumber>
  12. <address>&less-url;</address>
  13. </sect1info>
  14. <title>Less-&less-version;</title>
  15. <indexterm zone="ch-system-less">
  16. <primary sortas="a-Less">Less</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Less package contains a text file viewer.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&less-fin-sbu;</seg>
  26. <seg>&less-fin-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Less</title>
  32. <para>Prepare Less for compilation:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr --sysconfdir=/etc</userinput></screen>
  34. <variablelist>
  35. <title>The meaning of the configure options:</title>
  36. <varlistentry>
  37. <term><parameter>--sysconfdir=/etc</parameter></term>
  38. <listitem>
  39. <para>This option tells the programs created by the package to look
  40. in <filename class="directory">/etc</filename> for the configuration
  41. files.</para>
  42. </listitem>
  43. </varlistentry>
  44. </variablelist>
  45. <para>Compile the package:</para>
  46. <screen><userinput remap="make">make</userinput></screen>
  47. <para>This package does not come with a test suite.</para>
  48. <para>Install the package:</para>
  49. <screen><userinput remap="install">make install</userinput></screen>
  50. </sect2>
  51. <sect2 id="contents-less" role="content">
  52. <title>Contents of Less</title>
  53. <segmentedlist>
  54. <segtitle>Installed programs</segtitle>
  55. <seglistitem>
  56. <seg>less, lessecho, and lesskey</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="less">
  64. <term><command>less</command></term>
  65. <listitem>
  66. <para>A file viewer or pager; it displays the contents of the given
  67. file, letting the user scroll, find strings, and jump to marks</para>
  68. <indexterm zone="ch-system-less less">
  69. <primary sortas="b-less">less</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="lessecho">
  74. <term><command>lessecho</command></term>
  75. <listitem>
  76. <para>Needed to expand meta-characters, such as <emphasis>*</emphasis>
  77. and <emphasis>?</emphasis>, in filenames on Unix systems</para>
  78. <indexterm zone="ch-system-less lessecho">
  79. <primary sortas="b-lessecho">lessecho</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="lesskey">
  84. <term><command>lesskey</command></term>
  85. <listitem>
  86. <para>Used to specify the key bindings for <command>less</command></para>
  87. <indexterm zone="ch-system-less lesskey">
  88. <primary sortas="b-lesskey">lesskey</primary>
  89. </indexterm>
  90. </listitem>
  91. </varlistentry>
  92. </variablelist>
  93. </sect2>
  94. </sect1>