فهرست منبع

Use sed's -i feature once it is installed in coreutils and gzip

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/jh/BOOK@8301 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Jeremy Huntwork 18 سال پیش
والد
کامیت
1bd7fd46e5
2فایلهای تغییر یافته به همراه2 افزوده شده و 8 حذف شده
  1. 1 4
      chapter06/coreutils.xml
  2. 1 4
      chapter06/gzip.xml

+ 1 - 4
chapter06/coreutils.xml

@@ -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

+ 1 - 4
chapter06/gzip.xml

@@ -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>