Changeset b242136 for LFS


Ignore:
Timestamp:
04/12/2006 08:23:12 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
eae0c9d
Parents:
aa08925
Message:

Skip unwanted scripts for iteration builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    raa08925 rb242136  
    147147#----------------------------#
    148148  # Set N and chapter6 for iteration targets
    149   if [[ -z $1 ]] ; then
     149  if [[ -z "$1" ]] ; then
    150150    local N=""
    151151  else
     
    167167    esac
    168168
     169    # Grab the name of the target
     170    name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
     171
     172    # Find the version of the command files, if it corresponds with the building of
     173    # a specific package. We need this here to can skip scripts not needed for
     174    # iterations rebuilds
     175    vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
     176
     177    if [[ "$vrs" = "" ]] && [[ -n "$N" ]] ; then
     178      case "${this_script}" in
     179        *stripping*) ;;
     180        *)  continue ;;
     181      esac
     182    fi
     183
    169184    # First append each name of the script files to a list (this will become
    170185    # the names of the targets in the Makefile
    171186    chapter6="$chapter6 ${this_script}${N}"
    172187
    173     # Grab the name of the target
    174     name=`echo ${this_script} | sed -e 's@[0-9]\{3\}-@@'`
    175 
    176188    #--------------------------------------------------------------------#
    177189    #         >>>>>>>> START BUILDING A Makefile ENTRY <<<<<<<<          #
     
    181193    # as a dependency. Also call the echo_message function.
    182194    wrt_target "${this_script}${N}" "$PREV"
    183 
    184     # Find the version of the command files, if it corresponds with the building of
    185     # a specific package
    186     vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    187195
    188196    # If $vrs isn't empty, we've got a package...
Note: See TracChangeset for help on using the changeset viewer.