source: chapter08/gawk.xml@ 1b61cd1

xry111/arm64 xry111/arm64-12.0
Last change on this file since 1b61cd1 was c8e374b, checked in by Xi Ruoyao <xry111@…>, 17 months ago

gawk: LN='ln -f' is an overridden make variable, not environment variable

LN='ln -f' make install won't work.

The terminlogy "override" is from section 9.5 of "info make".

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