aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerard Beekmans <gerard@linuxfromscratch.org>2001-08-29 20:22:38 +0000
committerGerard Beekmans <gerard@linuxfromscratch.org>2001-08-29 20:22:38 +0000
commit56c46bdd54faadaf94b6780a29faf8950c5cfd88 (patch)
treedd9885695bbd54f638ba9c1063356ff9020f81b4
parente30bc19d79cdcb592ee1c22ec48781183becdeae (diff)
fixed sed command (removed necessary newline)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1118 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter06/file-inst.xml7
1 files changed, 1 insertions, 6 deletions
diff --git a/chapter06/file-inst.xml b/chapter06/file-inst.xml
index 94a03afa6..cc1e0990c 100644
--- a/chapter06/file-inst.xml
+++ b/chapter06/file-inst.xml
@@ -1,15 +1,10 @@
<sect2>
<title>Installation of File</title>
-<para>Note that the sed used in this installation only works if the line
-break is placed exactly where it below. Don't try and put it
-all on one line otherwise it won't work.</para>
-
<para>Install File by running the following commands:</para>
<para><screen><userinput>cp readelf.h readelf.h.backup &amp;&amp;</userinput>
-<userinput>sed '/#define __/a \</userinput>
-<userinput>&nbsp;&nbsp;&nbsp;#include &lt;stdint.h&gt;' readelf.h.backup &gt; readelf.h &amp;&amp;</userinput>
+<userinput>sed $'/#define __/a \\\n#include &lt;stdint.h&gt;' readelf.h.backup &gt; readelf.h &amp;&amp;</userinput>
<userinput>./configure --prefix=/usr --datadir=/usr/share/misc &amp;&amp;</userinput>
<userinput>make &amp;&amp;</userinput>
<userinput>make install</userinput></screen></para>