aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/glibc-exp.xml
diff options
context:
space:
mode:
authorMark Hymers <markh@linuxfromscratch.org>2001-08-15 12:50:02 +0000
committerMark Hymers <markh@linuxfromscratch.org>2001-08-15 12:50:02 +0000
commit8f5efb62001439e55fbacf47e2b4a9f21b6faa01 (patch)
tree2da80211de9958c3003fbc2721ba240c7b0a41c5 /chapter06/glibc-exp.xml
parent2bcd77192f30d42f7001d711e33a94a86a3eedf1 (diff)
Bug 125: simplify seds
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@973 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/glibc-exp.xml')
-rw-r--r--chapter06/glibc-exp.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter06/glibc-exp.xml b/chapter06/glibc-exp.xml
index 73aa27bad..822d8d83d 100644
--- a/chapter06/glibc-exp.xml
+++ b/chapter06/glibc-exp.xml
@@ -16,7 +16,7 @@ that it can't read the file, so we simply create an empty file (the empty file
will have Glibc default to using /lib and /usr/lib which is fine
right now).</para>
-<para><userinput>sed s/"\$(PERL)"/"\/usr\/bin\/perl"/
+<para><userinput>sed 's|$(PERL)|/usr/bin/perl|'
../glibc-2.2.3/malloc/Makefile &gt; tmp~:</userinput> This sed command
searches through <filename>../glibc-2.2.3/malloc/Makefile</filename> and
converts all occurances of <filename>$(PERL)</filename> to
@@ -31,7 +31,7 @@ Glibc.</para>
when using sed, we can't write straight back to this file so we need to
use a temporary file in between.</para>
-<para><userinput>sed "s/root/0" ../glibc-2.2.3/login/Makefile &gt;
+<para><userinput>sed 's/root/0' ../glibc-2.2.3/login/Makefile &gt;
tmp~:</userinput> This sed command replaces all occurances of
<filename>root</filename> in
<filename>../glibc-2.2.3/login/Makefile</filename> with 0. This is
@@ -46,7 +46,7 @@ edited Makefile and then copying it back over the original.</para>
<para><userinput>--enable-add-ons:</userinput> This enables the add-on that
we install with Glibc: linuxthreads</para>
-<para><userinput>sed s/"cross-compiling = yes"/"cross-compiling = no"/
+<para><userinput>sed 's/cross-compiling = yes/cross-compiling = no/'
config.make &gt; config.make~:</userinput> This time, we're replacing
<filename>cross-compiling = yes</filename> with
<filename>cross-compiling = no</filename>. We do this because we are