123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-gawk" role="wrap">
- <?dbhtml filename="gawk.html"?>
- <sect1info condition="script">
- <productname>gawk</productname>
- <productnumber>&gawk-version;</productnumber>
- <address>&gawk-url;</address>
- </sect1info>
- <title>Gawk-&gawk-version;</title>
- <indexterm zone="ch-system-gawk">
- <primary sortas="a-Gawk">Gawk</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>Gawk 软件包包含操作文本文件的程序。</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&gawk-ch6-sbu;</seg>
- <seg>&gawk-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 Gawk</title>
- <para>首先,确保不安装某些不需要的文件:</para>
- <screen><userinput remap="pre">sed -i 's/extras//' Makefile.in</userinput></screen>
- <para>准备安装 Gawk:</para>
- <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <para>运行以下命令以测试编译结果:</para>
- <screen><userinput remap="test">make check</userinput></screen>
- <para>安装该软件包:</para>
- <screen><userinput remap="install">make install</userinput></screen>
- <para>如果需要的话,安装文档:</para>
- <screen><userinput remap="install">mkdir -v /usr/share/doc/gawk-&gawk-version;
- cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;</userinput></screen>
- </sect2>
- <sect2 id="contents-gawk" role="content">
- <title>Gawk 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <segtitle>安装的库</segtitle>
- <segtitle>安装的目录</segtitle>
- <seglistitem>
- <seg>awk (到 gawk 的链接), gawk, gawk-&gawk-version;, 以及 igawk</seg>
- <seg>filefuncs.so, fnmatch.so, fork.so, inplace.so, ordchr.so,
- readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so,
- testext.so, 以及 time.so</seg>
- <seg>/usr/lib/gawk, /usr/libexec/awk, /usr/share/awk, 以及
- /usr/share/doc/gawk-&gawk-version;</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="awk">
- <term><command>awk</command></term>
- <listitem>
- <para>到 <command>gawk</command> 的链接</para>
- <indexterm zone="ch-system-gawk awk">
- <primary sortas="b-awk">awk</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gawk">
- <term><command>gawk</command></term>
- <listitem>
- <para>一个操作文本文件的程序;是 <command>awk</command>
- 的 GNU 实现</para>
- <indexterm zone="ch-system-gawk gawk">
- <primary sortas="b-gawk">gawk</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="gawk-version">
- <term><command>gawk-&gawk-version;</command></term>
- <listitem>
- <para>与 <command>gawk</command> 互为硬链接</para>
- <indexterm zone="ch-system-gawk gawk-version">
- <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="igawk">
- <term><command>igawk</command></term>
- <listitem>
- <para>向 <command>gawk</command> 提供包含文件的能力</para>
- <indexterm zone="ch-system-gawk igawk">
- <primary sortas="b-igawk">igawk</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|