Changeset aafcfa9 for LFS


Ignore:
Timestamp:
09/27/2007 08:41:58 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
41d8577
Parents:
111d25a
Message:

Makefile envars and fuctions revised.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    r111d25a raafcfa9  
    101101    # Drop in the name of the target on a new line, and the previous target
    102102    # as a dependency. Also call the echo_message function.
    103     LUSER_wrt_target "${this_script}" "$PREV"
     103    wrt_target "${this_script}" "$PREV"
    104104
    105105    # Run the script.
     
    107107    case "${this_script}" in
    108108      *changingowner)  wrt_RunAsRoot "$file" ;;
    109       *)               LUSER_wrt_RunAsUser "$file" ;;
     109      *)               wrt_RunScript "$file" ;;
    110110    esac
    111111
     
    186186    # Drop in the name of the target on a new line, and the previous target
    187187    # as a dependency. Also call the echo_message function.
    188     # In the mount of kernel filesystems we need to set LFS
    189     # and not to use chroot.
    190     case "${this_script}" in
    191       *kernfs)  LUSER_wrt_target  "${this_script}" "$PREV" ;;
    192       *)        CHROOT_wrt_target "${this_script}" "$PREV" ;;
    193     esac
     188    wrt_target  "${this_script}" "$PREV"
    194189
    195190    # Touch timestamp file if installed files logs will be created.
    196191    # But only for the firt build when running iterative builds.
    197192    if [ "$name" != "" ] && [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
    198       CHROOT_wrt_TouchTimestamp
     193      wrt_TouchTimestamp
    199194    fi
    200195
     
    202197    # and not to use chroot.
    203198    case "${this_script}" in
    204       *kernfs)  wrt_RunAsRoot  "$file" ;;
    205       *)        CHROOT_wrt_RunAsRoot "$file" ;;
     199      *kernfs)  wrt_RunAsRoot "$file" ;;
     200      *)        wrt_RunScript "$file" ;;
    206201    esac
    207202
    208203    # Write installed files log
    209204    if [ "$name" != "" ] && [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
    210       CHROOT_wrt_LogNewFiles "$name"
     205      wrt_LogNewFiles "$name"
    211206    fi
    212207
     
    255250    # Drop in the name of the target on a new line, and the previous target
    256251    # as a dependency. Also call the echo_message function.
    257     CHROOT_wrt_target "${this_script}" "$PREV"
     252    wrt_target "${this_script}" "$PREV"
    258253
    259254    # For bootscripts and kernel, start INSTALL_LOG if requested
    260255    case "${this_script}" in
    261256      *bootscripts | *kernel ) if [ "${INSTALL_LOG}" = "y" ] ; then
    262                                   CHROOT_wrt_TouchTimestamp
    263                                 fi ;;
     257                                 wrt_TouchTimestamp
     258                               fi ;;
    264259    esac
    265260
     
    267262    case "${this_script}" in
    268263      *fstab) if [[ -n $FSTAB ]]; then
    269                 CHROOT_wrt_CopyFstab
     264                wrt_CopyFstab
    270265              else
    271                 CHROOT_wrt_RunAsRoot "$file"
    272               fi
    273         ;;
    274       *)        CHROOT_wrt_RunAsRoot "$file"
    275         ;;
     266                wrt_RunScript "$file"
     267              fi ;;
     268           *) wrt_RunScript "$file" ;;
    276269    esac
    277270
    278271    case "${this_script}" in
    279272      *bootscripts)  if [ "${INSTALL_LOG}" = "y" ] ; then
    280                        CHROOT_wrt_LogNewFiles "lfs-bootscripts"
     273                       wrt_LogNewFiles "lfs-bootscripts"
    281274                     fi ;;
    282275      *kernel)       if [ "${INSTALL_LOG}" = "y" ] ; then
    283                        CHROOT_wrt_LogNewFiles "linux"
     276                       wrt_LogNewFiles "linux"
    284277                     fi ;;
    285278    esac
Note: See TracChangeset for help on using the changeset viewer.