[Clfs-commits] commit: r4160 - in /trunk/BOOK/temp-system/common: coreutils.xml gzip.xml

svn at cross-lfs.org svn at cross-lfs.org
Sun Dec 21 17:53:20 PST 2008


Author: chris at beaker67.com
Date: Mon Dec 22 01:53:19 2008
New Revision: 4160

Log:
Modify temp-system sed commands to work with more versions of sed

Modified:
    trunk/BOOK/temp-system/common/coreutils.xml
    trunk/BOOK/temp-system/common/gzip.xml

Modified: trunk/BOOK/temp-system/common/coreutils.xml
==============================================================================
--- trunk/BOOK/temp-system/common/coreutils.xml (original)
+++ trunk/BOOK/temp-system/common/coreutils.xml Mon Dec 22 01:53:19 2008
@@ -28,7 +28,8 @@
     following command causes the Makefile to use the host's
     <command>install</command> to perform the install:</para>
 
-<screen os="bs2"><userinput>sed -i "/binPROGRAMS_INSTALL=/s:./ginstall:install:" src/Makefile.in</userinput></screen>
+<screen os="bs2"><userinput>cp -v src/Makefile.in{,.orig}
+sed -e "/binPROGRAMS_INSTALL=/s:./ginstall:install:" src/Makefile.in.orig > src/Makefile.in</userinput></screen>
 
     <para os="ba">Configure can not properly determine how to get free space
     when cross-compiling - as a result, the <command>df</command> program will

Modified: trunk/BOOK/temp-system/common/gzip.xml
==============================================================================
--- trunk/BOOK/temp-system/common/gzip.xml (original)
+++ trunk/BOOK/temp-system/common/gzip.xml Mon Dec 22 01:53:19 2008
@@ -26,9 +26,10 @@
     href="../../final-system/common/gzip.xml"
     xpointer="xpointer(//*[@os='s1'])"/>
 
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../../final-system/common/gzip.xml"
-    xpointer="xpointer(//*[@os='s2'])"/>
+<screen os="s2"><userinput>for file in $(grep -lr futimens *); do
+  cp -v ${file}{,.orig}
+  sed -e "s/futimens/gl_&/" ${file}.orig > ${file}
+done</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../../final-system/common/gzip.xml"




More information about the Clfs-commits mailing list