lfs/chapter06/ed-inst.xml
Gerard Beekmans 055bedaedb reworded ed's needs
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
2001-12-16 16:00:23 +00:00

23 lines
793 B
XML

<sect2>
<title>Installation of Ed</title>
<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
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;sed '/.*\*mktemp.*/d' | \
&nbsp;&nbsp;&nbsp;sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
&nbsp;&nbsp;&nbsp;if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' &gt; buf.c &amp;&amp;
./configure --prefix=/usr &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
</sect2>