[7152faa] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[fcc02767] | 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 |
|
---|
| 8 | <sect1 id="ch-system-gawk" role="wrap">
|
---|
| 9 | <?dbhtml filename="gawk.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>gawk</productname>
|
---|
| 13 | <productnumber>&gawk-version;</productnumber>
|
---|
| 14 | <address>&gawk-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Gawk-&gawk-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-gawk">
|
---|
| 20 | <primary sortas="a-Gawk">Gawk</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>The Gawk package contains programs for manipulating text files.</para>
|
---|
| 27 |
|
---|
| 28 | <segmentedlist>
|
---|
| 29 | <segtitle>&buildtime;</segtitle>
|
---|
| 30 | <segtitle>&diskspace;</segtitle>
|
---|
| 31 |
|
---|
| 32 | <seglistitem>
|
---|
[fb386e0] | 33 | <seg>&gawk-fin-sbu;</seg>
|
---|
| 34 | <seg>&gawk-fin-du;</seg>
|
---|
[fcc02767] | 35 | </seglistitem>
|
---|
| 36 | </segmentedlist>
|
---|
| 37 |
|
---|
| 38 | </sect2>
|
---|
| 39 |
|
---|
| 40 | <sect2 role="installation">
|
---|
| 41 | <title>Installation of Gawk</title>
|
---|
| 42 |
|
---|
| 43 | <para>First, ensure some unneeded files are not installed:</para>
|
---|
| 44 |
|
---|
| 45 | <screen><userinput remap="pre">sed -i 's/extras//' Makefile.in</userinput></screen>
|
---|
| 46 |
|
---|
| 47 | <para>Prepare Gawk for compilation:</para>
|
---|
| 48 |
|
---|
| 49 | <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
---|
| 50 |
|
---|
| 51 | <para>Compile the package:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <para>To test the results, issue:</para>
|
---|
| 56 |
|
---|
[9c73d911] | 57 | <screen><userinput remap="test">chown -R tester .
|
---|
[70927b9] | 58 | su tester -c "PATH=$PATH make check"</userinput></screen>
|
---|
[fcc02767] | 59 |
|
---|
| 60 | <para>Install the package:</para>
|
---|
| 61 |
|
---|
[5f8327e] | 62 | <screen><userinput remap="install">rm -f /usr/bin/gawk-&gawk-version;
|
---|
| 63 | make install</userinput></screen>
|
---|
[c9aabf1] | 64 |
|
---|
| 65 | <variablelist>
|
---|
[5f8327e] | 66 | <title>The meaning of the command:</title>
|
---|
[c9aabf1] | 67 |
|
---|
| 68 | <varlistentry>
|
---|
[93311f4] | 69 | <term><command>rm -f /usr/bin/gawk-&gawk-version;</command></term>
|
---|
[c9aabf1] | 70 | <listitem>
|
---|
[5f8327e] | 71 | <para>The building system will not recreate the hard link
|
---|
| 72 | <filename>gawk-&gawk-version;</filename> if it already exists.
|
---|
| 73 | Remove it to ensure that the previous hard link installed
|
---|
[c9aabf1] | 74 | in <xref linkend='ch-tools-gawk'/> is updated here.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 | </variablelist>
|
---|
[fcc02767] | 78 |
|
---|
[30e0a7b] | 79 | <para>The installation process already created <command>awk</command>
|
---|
| 80 | as a symlink to <command>gawk</command>, create its man page as a
|
---|
| 81 | symlink as well:</para>
|
---|
| 82 |
|
---|
| 83 | <screen><userinput remap="install">ln -sv gawk.1 /usr/share/man/man1/awk.1</userinput></screen>
|
---|
| 84 |
|
---|
[fcc02767] | 85 | <para>If desired, install the documentation:</para>
|
---|
| 86 |
|
---|
[8fd9f81] | 87 | <screen><userinput remap="install">mkdir -pv /usr/share/doc/gawk-&gawk-version;
|
---|
[fcc02767] | 88 | cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;</userinput></screen>
|
---|
| 89 |
|
---|
| 90 | </sect2>
|
---|
| 91 |
|
---|
| 92 | <sect2 id="contents-gawk" role="content">
|
---|
| 93 | <title>Contents of Gawk</title>
|
---|
| 94 |
|
---|
| 95 | <segmentedlist>
|
---|
| 96 | <segtitle>Installed programs</segtitle>
|
---|
| 97 | <segtitle>Installed libraries</segtitle>
|
---|
| 98 | <segtitle>Installed directories</segtitle>
|
---|
| 99 |
|
---|
| 100 | <seglistitem>
|
---|
[26954aa] | 101 | <seg>awk (link to gawk), gawk, and gawk-&gawk-version;</seg>
|
---|
[fcc02767] | 102 | <seg>filefuncs.so, fnmatch.so, fork.so, inplace.so, intdiv.so, ordchr.so,
|
---|
| 103 | readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so,
|
---|
| 104 | and time.so (all in /usr/lib/gawk)</seg>
|
---|
| 105 | <seg>/usr/lib/gawk, /usr/libexec/awk, /usr/share/awk, and
|
---|
| 106 | /usr/share/doc/gawk-&gawk-version;</seg>
|
---|
| 107 | </seglistitem>
|
---|
| 108 | </segmentedlist>
|
---|
| 109 |
|
---|
| 110 | <variablelist>
|
---|
| 111 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 112 | <?dbfo list-presentation="list"?>
|
---|
| 113 | <?dbhtml list-presentation="table"?>
|
---|
| 114 |
|
---|
| 115 | <varlistentry id="awk">
|
---|
| 116 | <term><command>awk</command></term>
|
---|
| 117 | <listitem>
|
---|
| 118 | <para>A link to <command>gawk</command></para>
|
---|
| 119 | <indexterm zone="ch-system-gawk awk">
|
---|
| 120 | <primary sortas="b-awk">awk</primary>
|
---|
| 121 | </indexterm>
|
---|
| 122 | </listitem>
|
---|
| 123 | </varlistentry>
|
---|
| 124 |
|
---|
| 125 | <varlistentry id="gawk">
|
---|
| 126 | <term><command>gawk</command></term>
|
---|
| 127 | <listitem>
|
---|
| 128 | <para>A program for manipulating text files; it is the GNU
|
---|
| 129 | implementation of <command>awk</command></para>
|
---|
| 130 | <indexterm zone="ch-system-gawk gawk">
|
---|
| 131 | <primary sortas="b-gawk">gawk</primary>
|
---|
| 132 | </indexterm>
|
---|
| 133 | </listitem>
|
---|
| 134 | </varlistentry>
|
---|
| 135 |
|
---|
| 136 | <varlistentry id="gawk-version">
|
---|
| 137 | <term><command>gawk-&gawk-version;</command></term>
|
---|
| 138 | <listitem>
|
---|
| 139 | <para>A hard link to <command>gawk</command></para>
|
---|
| 140 | <indexterm zone="ch-system-gawk gawk-version">
|
---|
| 141 | <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
|
---|
| 142 | </indexterm>
|
---|
| 143 | </listitem>
|
---|
| 144 | </varlistentry>
|
---|
| 145 |
|
---|
| 146 | </variablelist>
|
---|
| 147 |
|
---|
| 148 | </sect2>
|
---|
| 149 |
|
---|
| 150 | </sect1>
|
---|