blob: 052d8ab0febeefe09b6f912fd57783b459ff1473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<sect2>
<title>Installation of Ed</title>
<para>Install Ed by running the following commands:</para>
<para><screen><userinput>cp buf.c buf.c.backup &&</userinput>
<userinput>sed 's/int u/int u, sfd/' buf.c.backup | \</userinput>
<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>
<userinput>make &&</userinput>
<userinput>make install &&</userinput>
<userinput>mv -f /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
</sect2>
|