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