gawk.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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-gawk" role="wrap">
  8. <?dbhtml filename="gawk.html"?>
  9. <sect1info condition="script">
  10. <productname>gawk</productname>
  11. <productnumber>&gawk-version;</productnumber>
  12. <address>&gawk-url;</address>
  13. </sect1info>
  14. <title>Gawk-&gawk-version;</title>
  15. <indexterm zone="ch-system-gawk">
  16. <primary sortas="a-Gawk">Gawk</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The Gawk package contains programs for manipulating text files.</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&gawk-ch6-sbu;</seg>
  26. <seg>&gawk-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>Installation of Gawk</title>
  32. <para>Under some circumstances, Gawk-&gawk-version; attempts to free a
  33. chunk of memory that was not allocated. This bug is fixed by the following
  34. patch:</para>
  35. <screen><userinput remap="pre">patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen>
  36. <para>Prepare Gawk for compilation:</para>
  37. <screen><userinput remap="configure">./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen>
  38. <para>Due to a bug in the <command>configure</command> script, Gawk fails
  39. to detect certain aspects of locale support in Glibc. This bug leads to,
  40. e.g., Gettext testsuite failures. Work around this issue by appending the
  41. missing macro definitions to <filename>config.h</filename>:</para>
  42. <screen><userinput remap="configure">cat &gt;&gt; config.h &lt;&lt; "EOF"
  43. <literal>#define HAVE_LANGINFO_CODESET 1
  44. #define HAVE_LC_MESSAGES 1</literal>
  45. EOF</userinput></screen>
  46. <para>Compile the package:</para>
  47. <screen><userinput remap="make">make</userinput></screen>
  48. <para>To test the results, issue:</para>
  49. <screen><userinput remap="test">make check</userinput></screen>
  50. <para>Install the package:</para>
  51. <screen><userinput remap="install">make install</userinput></screen>
  52. </sect2>
  53. <sect2 id="contents-gawk" role="content">
  54. <title>Contents of Gawk</title>
  55. <segmentedlist>
  56. <segtitle>Installed programs</segtitle>
  57. <seglistitem>
  58. <seg>awk (link to gawk), gawk, gawk-&gawk-version;, grcat, igawk, pgawk,
  59. pgawk-&gawk-version;, and pwcat</seg>
  60. </seglistitem>
  61. </segmentedlist>
  62. <variablelist>
  63. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  64. <?dbfo list-presentation="list"?>
  65. <?dbhtml list-presentation="table"?>
  66. <varlistentry id="awk">
  67. <term><command>awk</command></term>
  68. <listitem>
  69. <para>A link to <command>gawk</command></para>
  70. <indexterm zone="ch-system-gawk awk">
  71. <primary sortas="b-awk">awk</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="gawk">
  76. <term><command>gawk</command></term>
  77. <listitem>
  78. <para>A program for manipulating text files; it is the GNU
  79. implementation of <command>awk</command></para>
  80. <indexterm zone="ch-system-gawk gawk">
  81. <primary sortas="b-gawk">gawk</primary>
  82. </indexterm>
  83. </listitem>
  84. </varlistentry>
  85. <varlistentry id="gawk-version">
  86. <term><command>gawk-&gawk-version;</command></term>
  87. <listitem>
  88. <para>A hard link to <command>gawk</command></para>
  89. <indexterm zone="ch-system-gawk gawk-version">
  90. <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
  91. </indexterm>
  92. </listitem>
  93. </varlistentry>
  94. <varlistentry id="grcat">
  95. <term><command>grcat</command></term>
  96. <listitem>
  97. <para>Dumps the group database <filename>/etc/group</filename></para>
  98. <indexterm zone="ch-system-gawk grcat">
  99. <primary sortas="b-grcat">grcat</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="igawk">
  104. <term><command>igawk</command></term>
  105. <listitem>
  106. <para>Gives <command>gawk</command> the ability to include files</para>
  107. <indexterm zone="ch-system-gawk igawk">
  108. <primary sortas="b-igawk">igawk</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. <varlistentry id="pgawk">
  113. <term><command>pgawk</command></term>
  114. <listitem>
  115. <para>The profiling version of <command>gawk</command></para>
  116. <indexterm zone="ch-system-gawk pgawk">
  117. <primary sortas="b-pgawk">pgawk</primary>
  118. </indexterm>
  119. </listitem>
  120. </varlistentry>
  121. <varlistentry id="pgawk-version">
  122. <term><command>pgawk-&gawk-version;</command></term>
  123. <listitem>
  124. <para>Hard link to <command>pgawk</command></para>
  125. <indexterm zone="ch-system-gawk pgawk-version">
  126. <primary sortas="b-pgawk-&gawk-version;">pgawk-&gawk-version;</primary>
  127. </indexterm>
  128. </listitem>
  129. </varlistentry>
  130. <varlistentry id="pwcat">
  131. <term><command>pwcat</command></term>
  132. <listitem>
  133. <para>Dumps the password database <filename>/etc/passwd</filename></para>
  134. <indexterm zone="ch-system-gawk pwcat">
  135. <primary sortas="b-pwcat">pwcat</primary>
  136. </indexterm>
  137. </listitem>
  138. </varlistentry>
  139. </variablelist>
  140. </sect2>
  141. </sect1>