r2536 - jhalfs/branches/experimental/LFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Wed Apr 12 13:23:13 PDT 2006


Author: manuel
Date: 2006-04-12 14:23:12 -0600 (Wed, 12 Apr 2006)
New Revision: 2536

Modified:
   jhalfs/branches/experimental/LFS/master.sh
Log:
Skip unwanted scripts for iteration builds.

Modified: jhalfs/branches/experimental/LFS/master.sh
===================================================================
--- jhalfs/branches/experimental/LFS/master.sh	2006-04-12 19:38:42 UTC (rev 2535)
+++ jhalfs/branches/experimental/LFS/master.sh	2006-04-12 20:23:12 UTC (rev 2536)
@@ -146,7 +146,7 @@
 chapter6_Makefiles() {
 #----------------------------#
   # Set N and chapter6 for iteration targets
-  if [[ -z $1 ]] ; then
+  if [[ -z "$1" ]] ; then
     local N=""
   else
     local N=-build_$1
@@ -166,13 +166,25 @@
       *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
     esac
 
+    # Grab the name of the target
+    name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
+
+    # Find the version of the command files, if it corresponds with the building of
+    # a specific package. We need this here to can skip scripts not needed for
+    # iterations rebuilds
+    vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
+
+    if [[ "$vrs" = "" ]] && [[ -n "$N" ]] ; then
+      case "${this_script}" in
+        *stripping*) ;;
+        *)  continue ;;
+      esac
+    fi
+
     # First append each name of the script files to a list (this will become
     # the names of the targets in the Makefile
     chapter6="$chapter6 ${this_script}${N}"
 
-    # Grab the name of the target
-    name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
-
     #--------------------------------------------------------------------#
     #         >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<<          #
     #--------------------------------------------------------------------#
@@ -181,10 +193,6 @@
     # as a dependency. Also call the echo_message function.
     wrt_target "${this_script}${N}" "$PREV"
 
-    # Find the version of the command files, if it corresponds with the building of
-    # a specific package
-    vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
-
     # If $vrs isn't empty, we've got a package...
     # Insert instructions for unpacking the package and changing directories
     if [ "$vrs" != "" ] ; then




More information about the alfs-log mailing list