| [02095ae] | 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 | 
|---|
|  | 21 | files.</para> | 
|---|
|  | 22 |  | 
|---|
|  | 23 | </sect2> | 
|---|
|  | 24 |  | 
|---|
|  | 25 | <sect2 role="installation"> | 
|---|
|  | 26 | <title>Installation of Gawk</title> | 
|---|
|  | 27 |  | 
|---|
|  | 28 | <para os="a">Patch Gawk to fix a bug which causes it to | 
|---|
|  | 29 | segfault when invoked on a non-existent file:</para> | 
|---|
|  | 30 |  | 
|---|
|  | 31 | <screen os="b"><userinput>patch -Np1 -i ../&gawk-segfault-patch;</userinput></screen> | 
|---|
|  | 32 |  | 
|---|
|  | 33 | <para os="c">Prepare Gawk for compilation:</para> | 
|---|
|  | 34 |  | 
|---|
|  | 35 | <screen os="d"><userinput>./configure --prefix=/usr --libexecdir=/usr/lib \ | 
|---|
| [586feb7] | 36 | --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen> | 
|---|
| [02095ae] | 37 |  | 
|---|
|  | 38 | <para os="e">Compile the package:</para> | 
|---|
|  | 39 |  | 
|---|
|  | 40 | <screen os="f"><userinput>make</userinput></screen> | 
|---|
|  | 41 |  | 
|---|
|  | 42 | <para os="g">Install the package:</para> | 
|---|
|  | 43 |  | 
|---|
| [586feb7] | 44 | <screen os="h"><userinput>make DESTDIR=${CLFS} install</userinput></screen> | 
|---|
| [02095ae] | 45 |  | 
|---|
|  | 46 | </sect2> | 
|---|
|  | 47 |  | 
|---|
|  | 48 | <sect2 id="contents-gawk" role="content"> | 
|---|
|  | 49 | <title>Contents of Gawk</title> | 
|---|
|  | 50 |  | 
|---|
|  | 51 | <segmentedlist> | 
|---|
|  | 52 | <segtitle>Installed programs</segtitle> | 
|---|
|  | 53 |  | 
|---|
|  | 54 | <seglistitem> | 
|---|
|  | 55 | <seg>awk (link to gawk), gawk, gawk-&gawk-version;, grcat, igawk, | 
|---|
|  | 56 | pgawk, pgawk-&gawk-version;, and pwcat</seg> | 
|---|
|  | 57 | </seglistitem> | 
|---|
|  | 58 | </segmentedlist> | 
|---|
|  | 59 |  | 
|---|
|  | 60 | <variablelist> | 
|---|
|  | 61 | <bridgehead renderas="sect3">Short Descriptions</bridgehead> | 
|---|
|  | 62 | <?dbfo list-presentation="list"?> | 
|---|
|  | 63 | <?dbhtml list-presentation="table"?> | 
|---|
|  | 64 |  | 
|---|
|  | 65 | <varlistentry id="awk"> | 
|---|
|  | 66 | <term><command>awk</command></term> | 
|---|
|  | 67 | <listitem> | 
|---|
|  | 68 | <para>A link to <command>gawk</command></para> | 
|---|
|  | 69 | <indexterm zone="ch-system-gawk awk"> | 
|---|
|  | 70 | <primary sortas="b-awk">awk</primary> | 
|---|
|  | 71 | </indexterm> | 
|---|
|  | 72 | </listitem> | 
|---|
|  | 73 | </varlistentry> | 
|---|
|  | 74 |  | 
|---|
|  | 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 |  | 
|---|
|  | 86 | <varlistentry id="gawk-version"> | 
|---|
|  | 87 | <term><command>gawk-&gawk-version;</command></term> | 
|---|
|  | 88 | <listitem> | 
|---|
|  | 89 | <para>A hard link to <command>gawk</command></para> | 
|---|
|  | 90 | <indexterm zone="ch-system-gawk gawk-version"> | 
|---|
|  | 91 | <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary> | 
|---|
|  | 92 | </indexterm> | 
|---|
|  | 93 | </listitem> | 
|---|
|  | 94 | </varlistentry> | 
|---|
|  | 95 |  | 
|---|
|  | 96 | <varlistentry id="grcat"> | 
|---|
|  | 97 | <term><command>grcat</command></term> | 
|---|
|  | 98 | <listitem> | 
|---|
|  | 99 | <para>Dumps the group database <filename>/etc/group</filename></para> | 
|---|
|  | 100 | <indexterm zone="ch-system-gawk grcat"> | 
|---|
|  | 101 | <primary sortas="b-grcat">grcat</primary> | 
|---|
|  | 102 | </indexterm> | 
|---|
|  | 103 | </listitem> | 
|---|
|  | 104 | </varlistentry> | 
|---|
|  | 105 |  | 
|---|
|  | 106 | <varlistentry id="igawk"> | 
|---|
|  | 107 | <term><command>igawk</command></term> | 
|---|
|  | 108 | <listitem> | 
|---|
|  | 109 | <para>Gives <command>gawk</command> the ability to include files</para> | 
|---|
|  | 110 | <indexterm zone="ch-system-gawk igawk"> | 
|---|
|  | 111 | <primary sortas="b-igawk">igawk</primary> | 
|---|
|  | 112 | </indexterm> | 
|---|
|  | 113 | </listitem> | 
|---|
|  | 114 | </varlistentry> | 
|---|
|  | 115 |  | 
|---|
|  | 116 | <varlistentry id="pgawk"> | 
|---|
|  | 117 | <term><command>pgawk</command></term> | 
|---|
|  | 118 | <listitem> | 
|---|
|  | 119 | <para>The profiling version of <command>gawk</command></para> | 
|---|
|  | 120 | <indexterm zone="ch-system-gawk pgawk"> | 
|---|
|  | 121 | <primary sortas="b-pgawk">pgawk</primary> | 
|---|
|  | 122 | </indexterm> | 
|---|
|  | 123 | </listitem> | 
|---|
|  | 124 | </varlistentry> | 
|---|
|  | 125 |  | 
|---|
|  | 126 | <varlistentry id="pgawk-version"> | 
|---|
|  | 127 | <term><command>pgawk-&gawk-version;</command></term> | 
|---|
|  | 128 | <listitem> | 
|---|
|  | 129 | <para>Hard link to <command>pgawk</command></para> | 
|---|
|  | 130 | <indexterm zone="ch-system-gawk pgawk-version"> | 
|---|
|  | 131 | <primary sortas="b-pgawk-&gawk-version;">pgawk-&gawk-version;</primary> | 
|---|
|  | 132 | </indexterm> | 
|---|
|  | 133 | </listitem> | 
|---|
|  | 134 | </varlistentry> | 
|---|
|  | 135 |  | 
|---|
|  | 136 | <varlistentry id="pwcat"> | 
|---|
|  | 137 | <term><command>pwcat</command></term> | 
|---|
|  | 138 | <listitem> | 
|---|
|  | 139 | <para>Dumps the password database <filename>/etc/passwd</filename></para> | 
|---|
|  | 140 | <indexterm zone="ch-system-gawk pwcat"> | 
|---|
|  | 141 | <primary sortas="b-pwcat">pwcat</primary> | 
|---|
|  | 142 | </indexterm> | 
|---|
|  | 143 | </listitem> | 
|---|
|  | 144 | </varlistentry> | 
|---|
|  | 145 |  | 
|---|
|  | 146 | </variablelist> | 
|---|
|  | 147 |  | 
|---|
|  | 148 | </sect2> | 
|---|
|  | 149 |  | 
|---|
|  | 150 | </sect1> | 
|---|