2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Ed</title>
|
|
|
|
|
2001-08-29 21:28:37 +01:00
|
|
|
<para>Ed is an optional package. The only program on a normal LFS system
|
|
|
|
that uses ed is patch. But these days, ed patch files are quite rare in
|
|
|
|
favour of the diff format patch files. So, if you personally have no
|
|
|
|
need to use ed, you can skip it.</para>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>Install Ed by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-10-27 23:21:44 +01:00
|
|
|
<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>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|