Ver código fonte

fixed sed command (removed necessary newline)

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1118 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 24 anos atrás
pai
commit
56c46bdd54
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      chapter06/file-inst.xml

+ 1 - 6
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>