Changeset 2dd88c4 for CLFS2


Ignore:
Timestamp:
08/05/2006 06:53:03 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
f3fcecc
Parents:
cfaeeb4
Message:

CLFS2 build method isn't suitable for ICA/farce runs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS2/master.sh

    rcfaeeb4 r2dd88c4  
    238238final_system_Makefiles() {    #
    239239#-----------------------------#
    240   # Set envars and scripts for iteration targets
    241   LOGS="" # Start with an empty global LOGS envar
    242   if [[ -z "$1" ]] ; then
    243     local N=""
    244   else
    245     local N=-build_$1
    246     local basicsystem=""
    247     mkdir final-system$N
    248     cp final-system/* final-system$N
    249     for script in final-system$N/* ; do
    250       # Overwrite existing symlinks, files, and dirs
    251       sed -e 's/ln -sv/&f/g' \
    252           -e 's/mv -v/&f/g' \
    253           -e 's/mkdir -v/&p/g' -i ${script}
    254     done
    255     # Remove Bzip2 binaries before make install
    256     sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2
    257     # Delete *old Readline libraries just after make install
    258     sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline
    259   fi
    260 
    261   echo "${tab_}${GREEN}Processing... ${L_arrow}final system$N${R_arrow}"
    262 
    263   for file in final-system$N/* ; do
     240  echo "${tab_}${GREEN}Processing... ${L_arrow}final system${R_arrow}"
     241
     242  for file in final-system/* ; do
    264243    # Keep the script file name
    265244    this_script=`basename $file`
     
    280259
    281260    # Find the version of the command files, if it corresponds with the building of
    282     # a specific package. We need this here to can skip scripts not needed for
    283     # iterations rebuilds
     261    # a specific package.
    284262    pkg_tarball=$(get_package_tarball_name $name)
    285 
    286     if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then
    287       case "${this_script}" in
    288         *stripping*) ;;
    289         *)  continue ;;
    290       esac
    291     fi
    292263
    293264    # Append each name of the script files to a list (this will become
    294265    # the names of the targets in the Makefile
    295     basicsystem="$basicsystem ${this_script}${N}"
    296 
    297     # Append each name of the script files to a list (this will become
    298     # the names of the logs to be moved for each iteration)
    299     LOGS="$LOGS ${this_script}"
     266    basicsystem="$basicsystem ${this_script}"
    300267
    301268    #--------------------------------------------------------------------#
     
    305272    # Drop in the name of the target on a new line, and the previous target
    306273    # as a dependency. Also call the echo_message function.
    307     wrt_target "${this_script}${N}" "$PREV"
     274    wrt_target "${this_script}" "$PREV"
    308275    #
    309276    # If $pkg_tarball isn't empty, we've got a package...
     
    326293    #
    327294    # Keep the script file name for Makefile dependencies.
    328     PREV=${this_script}${N}
    329     # Set system_build envar for iteration targets
    330     system_build=$basicsystem
     295    PREV=${this_script}
    331296  done  # for file in final-system/* ...
    332297}
     
    447412                fi
    448413          ;;
    449       *)  wrt_ExecuteAsUser "clfs"  "${this_script}" "${file}" 
     414      *)  wrt_ExecuteAsUser "clfs"  "${this_script}" "${file}"
    450415          ;;
    451416    esac
     
    522487        rm -rf ./{clfs2-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches}
    523488
    524 clean: 
     489clean:
    525490
    526491restart:
Note: See TracChangeset for help on using the changeset viewer.