Changeset eb024db


Ignore:
Timestamp:
04/11/2006 08:03:19 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
d27c9ca
Parents:
a212c80
Message:

Started new method to create iteration Makefile targets.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    ra212c80 reb024db  
    156156    case "${this_script}" in
    157157      *chroot)      continue ;;
    158       *stripping*) [[ "${STRIP}" = "0" ]] && continue
    159                    [[ "${STRIP}" != "0" ]] && [[ "$COMPARE" != "0" ]] && \
    160                    system_rebuild="$system_rebuild ${this_script}"
    161       ;;
     158      *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
    162159    esac
    163160
     
    186183      FILE="$name-$vrs.tar.*"
    187184      wrt_unpack2 "$FILE"
    188       # Add it to the system_rebuild target
    189       [[ "$COMPARE" != "0" ]] && system_rebuild="$system_rebuild ${this_script}"
    190185    fi
    191186
     
    311306  chapter5_Makefiles
    312307  chapter6_Makefiles
     308  # Add the ICA/farce targets, if needed
     309  [[ "$COMPARE" != "0" ]] && wrt_ica_targets
    313310  chapter789_Makefiles
    314311
     
    402399) >> $MKFILE
    403400
    404   # Add the ICA/farce targets
    405   [[ "$COMPARE" != "0" ]] && wrt_ica_targets "$system_rebuild"
    406 
    407401  # Bring over the items from the Makefile.tmp
    408402  cat $MKFILE.tmp >> $MKFILE
  • common/func_ICA.sh

    ra212c80 reb024db  
    44wrt_ica_targets() {                #
    55#----------------------------------#
    6   local system_rebuild=$1
    7   wrt_system_rebuild "$system_rebuild"
    8   wrt_iterations     "$system_rebuild"
    9 }
    10 
    11 #----------------------------------#
    12 wrt_system_rebuild() {                #
    13 #----------------------------------#
    14   local system_rebuild=$1
    15 (
    16     cat << EOF
    17 system_rebuild:  $system_rebuild
    18 
    19 EOF
    20 ) >> $MKFILE
    21 }
    22 
    23 #----------------------------------#
    24 wrt_iterations() {                 #
    25 #----------------------------------#
    26   local system_rebuild=$1
    276
    287  for ((N=1; N <= ITERATIONS ; N++)) ; do # Double parentheses,
     
    3211      echo "$ITERATION:  chapter6" >> $MKFILE
    3312      echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
    34       wrt_prepare        "$ITERATION"
     13      wrt_ica_work       "$ITERATION"
    3514      wrt_logs_and_clean "$ITERATION"
    36       PREV=$ITERATION
    37     elif [ "$N" = "$ITERATIONS" ] ; then
    38       echo "iteration-last:  $PREV  system_rebuild" >> $MKFILE
     15    else
     16      wrt_system_build $N
     17      echo "iteration-last:  $PREV  system_build_$N" >> $MKFILE
    3918      echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
    40       wrt_prepare        "$ITERATION" "$PREV"
    41       wrt_logs           "$ITERATION"
    42     else
    43       echo "$ITERATION:  $PREV  system_rebuild" >> $MKFILE
    44       echo -e "\t@\$(call echo_message, Building)" >> $MKFILE
    45       wrt_prepare        "$ITERATION" "$PREV"
    46       wrt_logs_and_clean "$ITERATION"
    47       PREV=$ITERATION
     19      wrt_ica_work       "$ITERATION" "$PREV"
     20      if [ "$N" = "$ITERATIONS" ] ; then
     21        wrt_logs           "$ITERATION"
     22      else
     23        wrt_logs_and_clean "$ITERATION"
     24      fi
    4825    fi
     26    PREV=$ITERATION
    4927  done
    5028}
    5129
    5230#----------------------------------#
    53 wrt_prepare() {                    #
     31wrt_system_build() {               #
     32#----------------------------------#
     33  local RUN=$1
     34
     35  # Placeholder for now
     36}
     37
     38#----------------------------------#
     39wrt_ica_work() {                   #
    5440#----------------------------------#
    5541  local ITERATION=$1
Note: See TracChangeset for help on using the changeset viewer.