| 12345678910111213141516171819202122 | 
							- <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 &&</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 /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
 
- </sect2>
 
 
  |