2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Ed</title>
|
|
|
|
|
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-08-24 21:45:42 +01:00
|
|
|
<para><screen><userinput>cp buf.c buf.c.backup &&</userinput>
|
|
|
|
<userinput>sed 's/int u/int u, sfd/' buf.c.backup | \</userinput>
|
2001-08-09 02:05:51 +01:00
|
|
|
<userinput> sed '/.*\*mktemp.*/d' | \</userinput>
|
|
|
|
<userinput> sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\</userinput>
|
|
|
|
<userinput> if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' > buf.c</userinput>
|
|
|
|
<userinput>./configure --prefix=/usr &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>mv -f /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|