gawk.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Gawk 软件包包含操作文本文件的程序。</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>安装 Gawk</title>
  32. <para>首先,确保不安装某些不需要的文件:</para>
  33. <screen><userinput remap="pre">sed -i 's/extras//' Makefile.in</userinput></screen>
  34. <para>准备安装 Gawk:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>编译该软件包:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>运行以下命令以测试编译结果:</para>
  39. <screen><userinput remap="test">make check</userinput></screen>
  40. <para>安装该软件包:</para>
  41. <screen><userinput remap="install">make install</userinput></screen>
  42. <para>如果需要的话,安装文档:</para>
  43. <screen><userinput remap="install">mkdir -v /usr/share/doc/gawk-&gawk-version;
  44. cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;</userinput></screen>
  45. </sect2>
  46. <sect2 id="contents-gawk" role="content">
  47. <title>Gawk 的内容</title>
  48. <segmentedlist>
  49. <segtitle>安装的程序</segtitle>
  50. <segtitle>安装的库</segtitle>
  51. <segtitle>安装的目录</segtitle>
  52. <seglistitem>
  53. <seg>awk (到 gawk 的链接), gawk, gawk-&gawk-version;, 以及 igawk</seg>
  54. <seg>filefuncs.so, fnmatch.so, fork.so, inplace.so, ordchr.so,
  55. readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so,
  56. testext.so, 以及 time.so</seg>
  57. <seg>/usr/lib/gawk, /usr/libexec/awk, /usr/share/awk, 以及
  58. /usr/share/doc/gawk-&gawk-version;</seg>
  59. </seglistitem>
  60. </segmentedlist>
  61. <variablelist>
  62. <bridgehead renderas="sect3">简要描述</bridgehead>
  63. <?dbfo list-presentation="list"?>
  64. <?dbhtml list-presentation="table"?>
  65. <varlistentry id="awk">
  66. <term><command>awk</command></term>
  67. <listitem>
  68. <para>到 <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. <varlistentry id="gawk">
  75. <term><command>gawk</command></term>
  76. <listitem>
  77. <para>一个操作文本文件的程序;是 <command>awk</command>
  78. 的 GNU 实现</para>
  79. <indexterm zone="ch-system-gawk gawk">
  80. <primary sortas="b-gawk">gawk</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="gawk-version">
  85. <term><command>gawk-&gawk-version;</command></term>
  86. <listitem>
  87. <para>与 <command>gawk</command> 互为硬链接</para>
  88. <indexterm zone="ch-system-gawk gawk-version">
  89. <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="igawk">
  94. <term><command>igawk</command></term>
  95. <listitem>
  96. <para>向 <command>gawk</command> 提供包含文件的能力</para>
  97. <indexterm zone="ch-system-gawk igawk">
  98. <primary sortas="b-igawk">igawk</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. </variablelist>
  103. </sect2>
  104. </sect1>