diff --git a/LFS/master.sh b/LFS/master.sh index 43fbe70..08ec609 100644 --- a/LFS/master.sh +++ b/LFS/master.sh @@ -225,7 +225,10 @@ chapter6_Makefiles() { # chapter 6. Note that this Makefile_target business is not really needed here # but we do it to have a similar structure to chapter 5 (we may merge all # those functions at some point). - Makefile_target=runasroot + case "$N" in + -build*) Makefile_target=chapter6 ;; + *) Makefile_target=runasroot ;; + esac # Start loop for file in chapter06$N/* ; do @@ -317,8 +320,13 @@ chapter6_Makefiles() { # Keep the script file name for Makefile dependencies. PREV=${this_script} # Set system_build envar for iteration targets - system_build=$chapter6 + if [ -z "$N" ]; then + system_build="$system_build $this_script" + fi done # end for file in chapter06/* + if [ -n "$N" ]; then + system_build="$chapter6" + fi } #----------------------------# diff --git a/common/libs/func_compare.sh b/common/libs/func_compare.sh index 4f644c0..f28ccb3 100644 --- a/common/libs/func_compare.sh +++ b/common/libs/func_compare.sh @@ -96,7 +96,7 @@ wrt_logs() { # for file in \`ls .\` ; do \\ mv -f \$\$file \`echo \$\$file | sed -e 's,-$build,,'\` ; \\ done ; \\ - fi ; + fi @cd /\$(SCRIPT_ROOT) @if [ -d test-logs ] ; then \\ cd test-logs && \\ diff --git a/extras/do_ica_prep b/extras/do_ica_prep index 1bbfaba..37d76f8 100755 --- a/extras/do_ica_prep +++ b/extras/do_ica_prep @@ -43,9 +43,9 @@ if [ ! -f "$CMP_DIR/icaprep" ]; then # hackery to allow easy diffing. Essentially, replace each # archive with a dir of the same name and extract the object # files from the archive into this dir. Despite their names, - # libieee.a & libmcheck.a are not actual ar archives. + # libm.a & libmcheck.a are not actual ar archives. echo -n "Extracting object files from \".a\" files in ${CMP_DIR}... " - L=$(find $CMP_DIR -name '*.a' ! -name 'libieee.a' ! -name 'libmcheck.a') + L=$(find $CMP_DIR -name '*.a' ! -name 'libm.a' ! -name 'libmcheck.a') for F in $L; do mv $F ${F}.XX mkdir $F