mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 14:07:39 +00:00
055bedaedb
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1389 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
23 lines
793 B
XML
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 &&
|
|
sed 's/int u/int u, sfd/' buf.c.backup | \
|
|
sed '/.*\*mktemp.*/d' | \
|
|
sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
|
|
if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c &&
|
|
./configure --prefix=/usr &&
|
|
make &&
|
|
make install &&
|
|
mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
|
|
|
|
</sect2>
|
|
|