Changeset aa08925
- Timestamp:
- 04/12/2006 07:38:42 PM (18 years ago)
- Branches:
- experimental
- Children:
- b242136
- Parents:
- d80021c3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LFS/master.sh
rd80021c3 raa08925 146 146 chapter6_Makefiles() { 147 147 #----------------------------# 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}" 149 157 150 158 for file in chapter06/* ; do … … 161 169 # First append each name of the script files to a list (this will become 162 170 # the names of the targets in the Makefile 163 chapter6="$chapter6 ${this_script} "171 chapter6="$chapter6 ${this_script}${N}" 164 172 165 173 # Grab the name of the target … … 172 180 # Drop in the name of the target on a new line, and the previous target 173 181 # as a dependency. Also call the echo_message function. 174 wrt_target "${this_script} " "$PREV"182 wrt_target "${this_script}${N}" "$PREV" 175 183 176 184 # Find the version of the command files, if it corresponds with the building of … … 206 214 207 215 # 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 209 219 done # end for file in chapter06/* 210 220 } -
common/func_compare.sh
rd80021c3 raa08925 9 9 ITERATION=iteration-$N 10 10 if [ "$N" != "1" ] ; then 11 wrt_system_build "$N" 11 wrt_system_build "$N" "$PREV_IT" 12 12 fi 13 13 wrt_target "$ITERATION" "$PREV" … … 22 22 wrt_system_build() { # 23 23 #----------------------------------# 24 local RUN=$1 25 26 echo "system_build_$N: $PREV $chapter6" >> $MKFILE.tmp 24 local RUN=$1 25 local PREV_IT=$2 27 26 28 27 if [[ "$PROGNAME" = "clfs" ]] && [[ "$METHOD" = "chroot" ]] ; then … … 33 32 chapter6_Makefiles $RUN 34 33 fi 34 35 echo -e "\nsystem_build_$RUN: $PREV_IT $system_build" >> $MKFILE.tmp 36 PREV=system_build_$RUN 35 37 36 38 } … … 107 109 @pushd logs && \\ 108 110 mkdir $ITERATION && \\ 109 cp ${ chapter6}-$N$ITERATION && \\111 cp ${system_build} $ITERATION && \\ 110 112 popd 111 113 @touch \$@ 112 113 114 EOF 114 115 ) >> $MKFILE.tmp
Note:
See TracChangeset
for help on using the changeset viewer.