Author: jhuntwork
Date: 2007-08-08 12:43:17 -0600 (Wed, 08 Aug 2007)
New Revision: 8301

Modified:
   branches/jh/BOOK/chapter06/coreutils.xml
   branches/jh/BOOK/chapter06/gzip.xml
Log:
Use sed's -i feature once it is installed in coreutils and gzip

Modified: branches/jh/BOOK/chapter06/coreutils.xml
===================================================================
--- branches/jh/BOOK/chapter06/coreutils.xml    2007-08-08 18:36:09 UTC (rev 
8300)
+++ branches/jh/BOOK/chapter06/coreutils.xml    2007-08-08 18:43:17 UTC (rev 
8301)
@@ -39,10 +39,7 @@
     by Coreutils is incompatible with the version that current
     Glibc provides, so we'll rename the function:</para>
 
-<screen><userinput>for file in src/{copy,touch}.c lib/utimens.{c,h} ; do \
-   cp -v $file{,.orig}
-   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
-done</userinput></screen>
+<screen><userinput>sed -i 's/futimens/gl_&amp;/' src/{copy,touch}.c 
lib/utimens.{c,h}</userinput></screen>
 
     <para>A known issue with the <command>uname</command> program from
     this package is that the <parameter>-p</parameter> switch always

Modified: branches/jh/BOOK/chapter06/gzip.xml
===================================================================
--- branches/jh/BOOK/chapter06/gzip.xml 2007-08-08 18:36:09 UTC (rev 8300)
+++ branches/jh/BOOK/chapter06/gzip.xml 2007-08-08 18:43:17 UTC (rev 8301)
@@ -39,10 +39,7 @@
     by Gzip is incompatible with the version that current
     Glibc provides, so we'll rename the function:</para>
 
-<screen><userinput>for file in gzip.c lib/utimens.{c,h} ; do \
-   cp -v $file{,.orig}
-   sed 's/futimens/gl_&amp;/' $file.orig &gt; $file
-done</userinput></screen>
+<screen><userinput>sed -i 's/futimens/gl_&amp;/' gzip.c 
lib/utimens.{c,h}</userinput></screen>
 
     <para>Prepare Gzip for compilation:</para>
 

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to