source: chapter08/gawk.xml@ c7ee38f

12.0 12.0-rc1 12.1 12.1-rc1 multilib trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/update-glibc
Last change on this file since c7ee38f was 0fe3bb0, checked in by Xi Ruoyao <xry111@…>, 13 months ago

Create man page symlinks for awk, cc, pkg-config, and lex

  • Property mode set to 100644
File size: 4.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
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>
33 <seg>&gawk-fin-sbu;</seg>
34 <seg>&gawk-fin-du;</seg>
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
57<screen><userinput remap="test">chown -Rv tester .
58su tester -c "PATH=$PATH make check"</userinput></screen>
59
60 <para>Install the package:</para>
61
62<screen><userinput remap="install">make LN='ln -f' install</userinput></screen>
63
64 <para>The installation process already created <command>awk</command>
65 as a symlink to <command>gawk</command>, create its man page as a
66 symlink as well:</para>
67
68<screen><userinput remap="install">ln -sv gawk.1 /usr/share/man/man1/awk.1</userinput></screen>
69
70 <variablelist>
71 <title>The meaning of the overridden make variable:</title>
72
73 <varlistentry>
74 <term><envar>LN='ln -f'</envar></term>
75 <listitem>
76 <para>This variable ensures that the previous hard link installed
77 in <xref linkend='ch-tools-gawk'/> is updated here.</para>
78 </listitem>
79 </varlistentry>
80 </variablelist>
81
82 <para>If desired, install the documentation:</para>
83
84<screen><userinput remap="install">mkdir -pv /usr/share/doc/gawk-&gawk-version;
85cp -v doc/{awkforai.txt,*.{eps,pdf,jpg}} /usr/share/doc/gawk-&gawk-version;</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-gawk" role="content">
90 <title>Contents of Gawk</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
94 <segtitle>Installed libraries</segtitle>
95 <segtitle>Installed directories</segtitle>
96
97 <seglistitem>
98 <seg>awk (link to gawk), gawk, and gawk-&gawk-version;</seg>
99 <seg>filefuncs.so, fnmatch.so, fork.so, inplace.so, intdiv.so, ordchr.so,
100 readdir.so, readfile.so, revoutput.so, revtwoway.so, rwarray.so,
101 and time.so (all in /usr/lib/gawk)</seg>
102 <seg>/usr/lib/gawk, /usr/libexec/awk, /usr/share/awk, and
103 /usr/share/doc/gawk-&gawk-version;</seg>
104 </seglistitem>
105 </segmentedlist>
106
107 <variablelist>
108 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
109 <?dbfo list-presentation="list"?>
110 <?dbhtml list-presentation="table"?>
111
112 <varlistentry id="awk">
113 <term><command>awk</command></term>
114 <listitem>
115 <para>A link to <command>gawk</command></para>
116 <indexterm zone="ch-system-gawk awk">
117 <primary sortas="b-awk">awk</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="gawk">
123 <term><command>gawk</command></term>
124 <listitem>
125 <para>A program for manipulating text files; it is the GNU
126 implementation of <command>awk</command></para>
127 <indexterm zone="ch-system-gawk gawk">
128 <primary sortas="b-gawk">gawk</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="gawk-version">
134 <term><command>gawk-&gawk-version;</command></term>
135 <listitem>
136 <para>A hard link to <command>gawk</command></para>
137 <indexterm zone="ch-system-gawk gawk-version">
138 <primary sortas="b-gawk-&gawk-version;">gawk-&gawk-version;</primary>
139 </indexterm>
140 </listitem>
141 </varlistentry>
142
143 </variablelist>
144
145 </sect2>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.