Changeset f28e4bd


Ignore:
Timestamp:
08/05/2006 07:07:42 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
14c9622
Parents:
206c894
Message:

Ported r2889 from trunk

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CLFS2/master.sh

    r206c894 rf28e4bd  
    202202final_system_Makefiles() {    #
    203203#-----------------------------#
    204   # Set envars and scripts for iteration targets
    205   LOGS="" # Start with an empty global LOGS envar
    206   if [[ -z "$1" ]] ; then
    207     local N=""
    208   else
    209     local N=-build_$1
    210     local basicsystem=""
    211     mkdir final-system$N
    212     cp final-system/* final-system$N
    213     for script in final-system$N/* ; do
    214       # Overwrite existing symlinks, files, and dirs
    215       sed -e 's/ln -sv/&f/g' \
    216           -e 's/mv -v/&f/g' \
    217           -e 's/mkdir -v/&p/g' -i ${script}
    218     done
    219     # Remove Bzip2 binaries before make install
    220     sed -e 's@make install@rm -vf /usr/bin/bz*\n&@' -i final-system$N/*-bzip2
    221     # Delete *old Readline libraries just after make install
    222     sed -e 's@make install@&\nrm -v /lib/lib{history,readline}*old@' -i final-system$N/*-readline
    223   fi
    224 
    225   echo "${tab_}${GREEN}Processing... ${L_arrow}final system$N${R_arrow}"
    226 
    227   for file in final-system$N/* ; do
     204  echo "${tab_}${GREEN}Processing... ${L_arrow}final system${R_arrow}"
     205
     206  for file in final-system/* ; do
    228207    # Keep the script file name
    229208    this_script=`basename $file`
     
    244223
    245224    # Find the version of the command files, if it corresponds with the building of
    246     # a specific package. We need this here to can skip scripts not needed for
    247     # iterations rebuilds
     225    # a specific package.
    248226    pkg_tarball=$(get_package_tarball_name $name)
    249 
    250     if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then
    251       case "${this_script}" in
    252         *stripping*) ;;
    253         *)  continue ;;
    254       esac
    255     fi
    256227
    257228    # Append each name of the script files to a list (this will become
    258229    # the names of the targets in the Makefile
    259     basicsystem="$basicsystem ${this_script}${N}"
    260 
    261     # Append each name of the script files to a list (this will become
    262     # the names of the logs to be moved for each iteration)
    263     LOGS="$LOGS ${this_script}"
     230    basicsystem="$basicsystem ${this_script}"
    264231
    265232    #--------------------------------------------------------------------#
     
    269236    # Drop in the name of the target on a new line, and the previous target
    270237    # as a dependency. Also call the echo_message function.
    271     wrt_target "${this_script}${N}" "$PREV"
     238    wrt_target "${this_script}" "$PREV"
    272239    #
    273240    # If $pkg_tarball isn't empty, we've got a package...
     
    290257    #
    291258    # Keep the script file name for Makefile dependencies.
    292     PREV=${this_script}${N}
    293     # Set system_build envar for iteration targets
    294     system_build=$basicsystem
     259    PREV=${this_script}
    295260  done  # for file in final-system/* ...
    296261}
     
    411376                fi
    412377          ;;
    413       *chowning)  wrt_RunAsRoot "${this_script}" "${file}" 
     378      *chowning)  wrt_RunAsRoot "${this_script}" "${file}"
    414379          ;;
    415               *)  wrt_RunAsUser "${this_script}" "${file}" 
     380              *)  wrt_RunAsUser "${this_script}" "${file}"
    416381          ;;
    417382    esac
     
    490455        rm -rf ./{clfs2-commands,logs,Makefile,*.xsl,makefile-functions,packages,patches}
    491456
    492 clean: 
     457clean:
    493458
    494459restart:
  • common/func_validate_configs.sh

    r206c894 rf28e4bd  
    8989  local -r  hlfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE MODEL GRSECURITY_HOST TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP         PAGE TIMEZONE LANG LC_ALL LUSER LGROUP"
    9090  local -r  clfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE METHOD  ARCH  TARGET  TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB BOOT_CONFIG CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    91   local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
     91  local -r clfs2_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE         ARCH  TARGET                 OPTIMIZE REPORT                                     STRIP FSTAB             CONFIG GETKERNEL KEYMAP VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    9292  local -r   lfs_PARAM_LIST="BOOK BUILDDIR SRC_ARCHIVE GETPKG RUNMAKE                       TEST BOMB_TEST OPTIMIZE REPORT COMPARE RUN_ICA RUN_FARCE ITERATIONS STRIP FSTAB             CONFIG GETKERNEL        VIMLANG PAGE TIMEZONE LANG        LUSER LGROUP"
    9393
Note: See TracChangeset for help on using the changeset viewer.