소스 검색

always remove the docs of temporary tools

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@12030 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Xi Ruoyao 3 년 전
부모
커밋
45d8933fde
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 5 4
      chapter07/stripping.xml

+ 5 - 4
chapter07/stripping.xml

@@ -17,6 +17,11 @@
 
 <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>
 
+    <para>Remove the documentation of the temporary tools, to prevent them
+    from ending up in the final system, and save about 35 MB:</para>
+
+<screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen>
+
   <note><para>
     All the remaining steps in this section are optional. Nevertheless,
     as soon as you begin installing packages in <xref
@@ -97,10 +102,6 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen>
     ones would be destroyed and the toolchain packages would need to be
     built all over again.</para>
 
-    <para>To save more space (slightly more than 35 MB), remove the documentation:</para>
-
-<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>
-
     <para>At this point, you should have at least 5 GB of free space on the
     chroot partition that can be used to build and install Glibc and GCC in
     the next phase. If you can build and install Glibc, you can build and install