diff options
Diffstat (limited to 'chapter06/ed-inst.xml')
-rw-r--r-- | chapter06/ed-inst.xml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chapter06/ed-inst.xml b/chapter06/ed-inst.xml index 4fdcf6358..38ca3d528 100644 --- a/chapter06/ed-inst.xml +++ b/chapter06/ed-inst.xml @@ -1,6 +1,10 @@ <sect2> <title>Installation of Ed</title> +<para>This package requires its patch to be applied before you can +install it. Make sure it's unpacked before running the installation +commands.</para> + <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 @@ -8,11 +12,7 @@ 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 && +<para><screen><userinput>patch -Np1 -i ../ed-&ed-version;.patch && ./configure --prefix=/usr && make && make install && |