Ignore:
Timestamp:
06/14/2020 07:08:19 AM (4 years ago)
Author:
Pierre Labastie <pierre@…>
Branches:
ablfs-more, legacy, trunk
Children:
cce9c16
Parents:
b33c6ee
Message:

Update ICA for new LFS/master.sh

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_compare.sh

    rb33c6ee r3da8c49  
    99    ITERATION=iteration-$N
    1010    if [ "$N" != "1" ] ; then
    11       wrt_system_build "$N" "$PREV_IT"
     11      wrt_system_build "$1" "$N" "$PREV_IT"
    1212    fi
     13    # add needed Makefile target
    1314    this_script=$ITERATION
    1415    CHROOT_wrt_target "$ITERATION" "$PREV"
     
    1920    PREV=$ITERATION
    2021  done
     22  # We need to prevent "userdel" in all iterations but the last
     23  # We need to access the scriptlets in "dir"
     24  local dir
     25  printf -v dir chapter%02d "$1"
     26
     27  sed -i '/userdel/d' $dir/*revised*
     28  for (( N = 2; N < ITERATIONS; N++ )); do
     29     sed -i '/userdel/d' $dir-build_$N/*revised*
     30  done
     31
    2132}
    2233
     
    2435wrt_system_build() {               #
    2536#----------------------------------#
    26   local     RUN=$1
    27   local PREV_IT=$2
     37  local    CHAP=$1
     38  local     RUN=$2
     39  local PREV_IT=$3
    2840
    2941  if [[ "$PROGNAME" = "clfs" ]] ; then
    3042    final_system_Makefiles $RUN
    3143  else
    32     chapter6_Makefiles $RUN
     44    chapter_targets $CHAP $RUN
    3345  fi
    3446
     
    3648    basicsystem="$basicsystem $PREV_IT $system_build"
    3749  else
    38     chapter6="$chapter6 $PREV_IT $system_build"
     50    CHROOT_TGT="$CHROOT_TGT $PREV_IT $system_build"
    3951  fi
    4052
     
    4355      basicsystem="$basicsystem iteration-$RUN"
    4456    else
    45       chapter6="$chapter6 iteration-$RUN"
     57      CHROOT_TGT="$CHROOT_TGT iteration-$RUN"
    4658    fi
    4759  fi
     
    7486    fi
    7587  fi
    76 
    7788}
    7889
Note: See TracChangeset for help on using the changeset viewer.