Changeset aa08925


Ignore:
Timestamp:
04/12/2006 07:38:42 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
b242136
Parents:
d80021c3
Message:

Generating truly separate sets of final system packages targets.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    rd80021c3 raa08925  
    146146chapter6_Makefiles() {
    147147#----------------------------#
    148   echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6${R_arrow}"
     148  # Set N and chapter6 for iteration targets
     149  if [[ -z $1 ]] ; then
     150    local N=""
     151  else
     152    local N=-build_$1
     153    local chapter6=""
     154  fi
     155
     156  echo "${tab_}${GREEN}Processing... ${L_arrow}Chapter6$N${R_arrow}"
    149157
    150158  for file in chapter06/* ; do
     
    161169    # First append each name of the script files to a list (this will become
    162170    # the names of the targets in the Makefile
    163     chapter6="$chapter6 ${this_script}"
     171    chapter6="$chapter6 ${this_script}${N}"
    164172
    165173    # Grab the name of the target
     
    172180    # Drop in the name of the target on a new line, and the previous target
    173181    # as a dependency. Also call the echo_message function.
    174     wrt_target "${this_script}" "$PREV"
     182    wrt_target "${this_script}${N}" "$PREV"
    175183
    176184    # Find the version of the command files, if it corresponds with the building of
     
    206214
    207215    # Keep the script file name for Makefile dependencies.
    208     PREV=${this_script}
     216    PREV=${this_script}${N}
     217    # Set system_build envar for iteration targets
     218    system_build=$chapter6
    209219  done # end for file in chapter06/*
    210220}
  • common/func_compare.sh

    rd80021c3 raa08925  
    99    ITERATION=iteration-$N
    1010    if [ "$N" != "1" ] ; then
    11       wrt_system_build "$N"
     11      wrt_system_build "$N" "$PREV_IT"
    1212    fi
    1313    wrt_target "$ITERATION" "$PREV"
     
    2222wrt_system_build() {               #
    2323#----------------------------------#
    24   local RUN=$1
    25 
    26   echo "system_build_$N: $PREV $chapter6" >> $MKFILE.tmp
     24  local     RUN=$1
     25  local PREV_IT=$2
    2726
    2827  if [[ "$PROGNAME" = "clfs" ]] && [[ "$METHOD" = "chroot" ]] ; then
     
    3332    chapter6_Makefiles $RUN
    3433  fi
     34
     35  echo -e "\nsystem_build_$RUN: $PREV_IT $system_build" >> $MKFILE.tmp
     36  PREV=system_build_$RUN
    3537
    3638}
     
    107109        @pushd logs && \\
    108110        mkdir $ITERATION && \\
    109         cp ${chapter6}-$N $ITERATION && \\
     111        cp ${system_build} $ITERATION && \\
    110112        popd
    111113        @touch \$@
    112 
    113114EOF
    114115) >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.