mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-20 22:17:39 +00:00
4d6fc2dabb
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1329 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
23 lines
811 B
XML
23 lines
811 B
XML
<sect2>
|
|
<title>Installation of Ed</title>
|
|
|
|
<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>
|
|
|
|
<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>
|
|
|