blob: 40f9a20af33fe2a4130adc82c47746c2456a73c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<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>
|