In the Embedded CLFS book (20101128 version from git), ${CLFS}/cross-tools
is created twice.  First in section 4.4 and then again in section 4.5 (but
this time without the bin subdirectory).  It should just be created in
section 4.5 as that's where the explanation is.

Patch attached.

Regards,
Andrew
From ed60179772d06063b5a05d6b19678a02b0507ce4 Mon Sep 17 00:00:00 2001
From: Andrew Bradford <[email protected]>
Date: Tue, 21 Dec 2010 11:19:49 -0500
Subject: [PATCH] Don't need to create the ${CLFS}/cross-tools directory twice.

Currently, in sections 4.4 and 4.5 of the embedded book, the ${CLFS}/cross-tools directory is created twice.  First in 4.4 it's created with its bin counterpart and then again in 4.5 it's created without the bin subdir.  There's no reason to create it twice.
Creation should happen in 4.5 as that's where its purpose is explained.
---
 BOOK/final-preps/creatingcrossdir.xml |    2 +-
 BOOK/final-preps/creatingdirs.xml     |    1 -
 2 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/BOOK/final-preps/creatingcrossdir.xml b/BOOK/final-preps/creatingcrossdir.xml
index 01dc785..904c6ba 100644
--- a/BOOK/final-preps/creatingcrossdir.xml
+++ b/BOOK/final-preps/creatingcrossdir.xml
@@ -20,6 +20,6 @@
 
   <para>Create the required directory by running the following:</para>
 
-<screen><userinput>install -dv ${CLFS}/cross-tools</userinput></screen>
+  <screen><userinput>install -dv ${CLFS}/cross-tools{,/bin}</userinput></screen>
 
 </sect1>
diff --git a/BOOK/final-preps/creatingdirs.xml b/BOOK/final-preps/creatingdirs.xml
index 91c3d0d..cf6e4bb 100644
--- a/BOOK/final-preps/creatingdirs.xml
+++ b/BOOK/final-preps/creatingdirs.xml
@@ -23,7 +23,6 @@ mkdir -pv ${CLFS}/usr/{,local/}{bin,include,lib,sbin,src}
 mkdir -pv ${CLFS}/usr/{,local/}share/{doc,info,locale,man}
 mkdir -pv ${CLFS}/usr/{,local/}share/{misc,terminfo,zoneinfo}
 mkdir -pv ${CLFS}/usr/{,local/}share/man/man{1,2,3,4,5,6,7,8}
-mkdir -pv ${CLFS}/cross-tools{,/bin}
 for dir in ${CLFS}/usr{,/local}; do
   ln -sv share/{man,doc,info} ${dir}
 done</userinput></screen>
-- 
1.5.6.5

_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to