less.xml 3.5 KB

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