ed-inst.xml 811 B

12345678910111213141516171819202122
  1. <sect2>
  2. <title>Installation of Ed</title>
  3. <para>Ed isn't something you would personally use. It's installed here
  4. because it can be used by the patch program if you encounter an ed-based patch
  5. file. This happens rarely because diff-based patches are preferred these
  6. days.</para>
  7. <para>Install Ed by running the following commands:</para>
  8. <para><screen><userinput>cp buf.c buf.c.backup &amp;&amp;
  9. sed 's/int u/int u, sfd/' buf.c.backup | \
  10. &nbsp;&nbsp;&nbsp;&nbsp;sed '/.*\*mktemp.*/d' | \
  11. &nbsp;&nbsp;&nbsp;&nbsp;sed 's/.*if (mktemp.*/ sfd = mkstemp(sfn);\
  12. &nbsp;&nbsp;&nbsp;&nbsp;if ((sfd == -1) || (sfp = fopen (sfn, "w+")) == NULL)/' &gt; buf.c &amp;&amp;
  13. ./configure --prefix=/usr &amp;&amp;
  14. make &amp;&amp;
  15. make install &amp;&amp;
  16. mv /usr/bin/ed /usr/bin/red /bin</userinput></screen></para>
  17. </sect2>