r2530 - in jhalfs/branches/experimental: LFS common

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Tue Apr 11 13:03:20 PDT 2006


Author: manuel
Date: 2006-04-11 14:03:19 -0600 (Tue, 11 Apr 2006)
New Revision: 2530

Modified:
   jhalfs/branches/experimental/LFS/master.sh
   jhalfs/branches/experimental/common/func_ICA.sh
Log:
Started new method to create iteration Makefile targets.

Modified: jhalfs/branches/experimental/LFS/master.sh
===================================================================
--- jhalfs/branches/experimental/LFS/master.sh	2006-04-11 19:12:54 UTC (rev 2529)
+++ jhalfs/branches/experimental/LFS/master.sh	2006-04-11 20:03:19 UTC (rev 2530)
@@ -155,10 +155,7 @@
     # dependencies and target creation.
     case "${this_script}" in
       *chroot)      continue ;;
-      *stripping*) [[ "${STRIP}" = "0" ]] && continue
-                   [[ "${STRIP}" != "0" ]] && [[ "$COMPARE" != "0" ]] && \
-                   system_rebuild="$system_rebuild ${this_script}"
-      ;;
+      *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
     esac
 
     # First append each name of the script files to a list (this will become
@@ -185,8 +182,6 @@
     if [ "$vrs" != "" ] ; then
       FILE="$name-$vrs.tar.*"
       wrt_unpack2 "$FILE"
-      # Add it to the system_rebuild target
-      [[ "$COMPARE" != "0" ]] && system_rebuild="$system_rebuild ${this_script}"
     fi
 
     # In the mount of kernel filesystems we need to set LFS
@@ -310,6 +305,8 @@
   chapter4_Makefiles
   chapter5_Makefiles
   chapter6_Makefiles
+  # Add the ICA/farce targets, if needed
+  [[ "$COMPARE" != "0" ]] && wrt_ica_targets
   chapter789_Makefiles
 
 
@@ -401,9 +398,6 @@
 EOF
 ) >> $MKFILE
 
-  # Add the ICA/farce targets
-  [[ "$COMPARE" != "0" ]] && wrt_ica_targets "$system_rebuild"
-
   # Bring over the items from the Makefile.tmp
   cat $MKFILE.tmp >> $MKFILE
   rm $MKFILE.tmp

Modified: jhalfs/branches/experimental/common/func_ICA.sh
===================================================================
--- jhalfs/branches/experimental/common/func_ICA.sh	2006-04-11 19:12:54 UTC (rev 2529)
+++ jhalfs/branches/experimental/common/func_ICA.sh	2006-04-11 20:03:19 UTC (rev 2530)
@@ -3,55 +3,41 @@
 #----------------------------------#
 wrt_ica_targets() {                #
 #----------------------------------#
-  local system_rebuild=$1
-  wrt_system_rebuild "$system_rebuild"
-  wrt_iterations     "$system_rebuild"
-}
 
-#----------------------------------#
-wrt_system_rebuild() {                #
-#----------------------------------#
-  local system_rebuild=$1
-(
-    cat << EOF
-system_rebuild:  $system_rebuild
-
-EOF
-) >> $MKFILE
-}
-
-#----------------------------------#
-wrt_iterations() {                 #
-#----------------------------------#
-  local system_rebuild=$1
-
   for ((N=1; N <= ITERATIONS ; N++)) ; do # Double parentheses,
                                           # and "ITERATIONS" with no "$".
     ITERATION=iteration-$N
     if [ "$N" = "1" ] ; then
       echo "$ITERATION:  chapter6" >> $MKFILE
       echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
-      wrt_prepare        "$ITERATION"
+      wrt_ica_work       "$ITERATION"
       wrt_logs_and_clean "$ITERATION"
-      PREV=$ITERATION
-    elif [ "$N" = "$ITERATIONS" ] ; then
-      echo "iteration-last:  $PREV  system_rebuild" >> $MKFILE
-      echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
-      wrt_prepare        "$ITERATION" "$PREV"
-      wrt_logs           "$ITERATION"
     else
-      echo "$ITERATION:  $PREV  system_rebuild" >> $MKFILE
+      wrt_system_build $N
+      echo "iteration-last:  $PREV  system_build_$N" >> $MKFILE
       echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
-      wrt_prepare        "$ITERATION" "$PREV"
-      wrt_logs_and_clean "$ITERATION"
-      PREV=$ITERATION
+      wrt_ica_work       "$ITERATION" "$PREV"
+      if [ "$N" = "$ITERATIONS" ] ; then
+        wrt_logs           "$ITERATION"
+      else
+        wrt_logs_and_clean "$ITERATION"
+      fi
     fi
+    PREV=$ITERATION
   done
 }
 
 #----------------------------------#
-wrt_prepare() {                    #
+wrt_system_build() {               #
 #----------------------------------#
+  local RUN=$1
+
+  # Placeholder for now
+}
+
+#----------------------------------#
+wrt_ica_work() {                   #
+#----------------------------------#
   local ITERATION=$1
   local      PREV=$2
   local PRUNEPATH="/dev /home /jhalfs /lost+found /media /mnt /opt /proc \




More information about the alfs-log mailing list