aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/ed-inst.xml
diff options
context:
space:
mode:
Diffstat (limited to 'chapter06/ed-inst.xml')
-rw-r--r--chapter06/ed-inst.xml10
1 files changed, 5 insertions, 5 deletions
diff --git a/chapter06/ed-inst.xml b/chapter06/ed-inst.xml
index 4fdcf6358..38ca3d528 100644
--- a/chapter06/ed-inst.xml
+++ b/chapter06/ed-inst.xml
@@ -1,6 +1,10 @@
<sect2>
<title>Installation of Ed</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>Ed isn't something you would personally use. It's installed here
because it can be used by the patch program if you encounter an ed-based patch
file. This happens rarely because diff-based patches are preferred these
@@ -8,11 +12,7 @@ days.</para>
<para>Install Ed by running the following commands:</para>
-<para><screen><userinput>cp buf.c buf.c.backup &amp;&amp;
-sed 's/int u/int u, sfd/' buf.c.backup | \
-&nbsp;&nbsp;&nbsp;&nbsp;sed '/.*\*mktemp.*/d' | \
-&nbsp;&nbsp;&nbsp;&nbsp;sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
-&nbsp;&nbsp;&nbsp;&nbsp;if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' &gt; buf.c &amp;&amp;
+<para><screen><userinput>patch -Np1 -i ../ed-&ed-version;.patch &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install &amp;&amp;