aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/gawk-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/gawk-inst.xml')
-rw-r--r--chapter06/gawk-inst.xml11
1 files changed, 6 insertions, 5 deletions
diff --git a/chapter06/gawk-inst.xml b/chapter06/gawk-inst.xml
index 49555c5cf..f480e1ea4 100644
--- a/chapter06/gawk-inst.xml
+++ b/chapter06/gawk-inst.xml
@@ -1,8 +1,12 @@
<sect2>
<title>Installation of Gawk</title>
+<para>This package requires its patch to be applied before you can
+install it. Make sure it's unpacked before running the installation
+commands.</para>
+
<para>Warning: do NOT run <userinput>make uninstall</userinput> on this
-package if you apply the <emphasis>sed</emphasis> fix to change the
+package if you apply the patch to change the
<filename class="directory">libexec</filename> directory definition. The
<emphasis>uninstall</emphasis> rule in the <filename>Makefile</filename>
file runs a command like <userinput>rm -rf
@@ -13,10 +17,7 @@ class="directory">/usr/bin</filename> it'll run <userinput>rm -rf
<para>Install Gawk by running the following commands:</para>
-<para><screen><userinput>cp awklib/Makefile.in awklib/Makefile.in.backup &amp;&amp;
-sed -e '/^datadir/s/awk/gawk/' \
--e '/^libexecdir/s%/awk%%' awklib/Makefile.in.backup \
-&nbsp;&nbsp;&nbsp;&nbsp;&gt; awklib/Makefile.in &amp;&amp;
+<para><screen><userinput>patch -Np1 -i ../gawk-&gawk-version;.patch &amp;&amp;
./configure --prefix=/usr --libexecdir=/usr/bin &amp;&amp;
make &amp;&amp;
make install</userinput></screen></para>