Changeset f546320 for HLFS/master.sh


Ignore:
Timestamp:
06/03/2007 09:06:13 AM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
05760bc
Parents:
350625a
Message:

Ported INSTALL_LOG support to all books.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    r350625a rf546320  
    332332    # as a dependency. Also call the echo_message function.
    333333    if [[ ${name} = "butterfly-toolchain" ]]; then
    334        CHROOT_wrt_target "${this_script}" "$PREV"
    335          process_toolchain "${this_script}" "${file}"
    336        wrt_touch
    337        PREV=$this_script
    338        continue
     334      CHROOT_wrt_target "${this_script}" "$PREV"
     335      # Touch timestamp file if installed files logs will be created.
     336      # But only for the firt build when running iterative builds.
     337      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
     338        CHROOT_wrt_TouchTimestamp
     339      fi
     340      process_toolchain "${this_script}" "${file}"
     341      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
     342        CHROOT_wrt_LogNewFiles "$name"
     343      fi
     344      wrt_touch
     345      PREV=$this_script
     346      continue
    339347    fi
    340348    # kernfs is run in SUDO target
     
    347355    # Insert instructions for unpacking the package and changing directories
    348356    if [ "$pkg_tarball" != "" ] ; then
     357      # Touch timestamp file if installed files logs will be created.
     358      # But only for the firt build when running iterative builds.
     359      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
     360        CHROOT_wrt_TouchTimestamp
     361      fi
    349362      CHROOT_Unpack "$pkg_tarball"
    350363      # If the testsuites must be run, initialize the log file
     
    366379    esac
    367380    #
    368     # Remove the build directory(ies) except if the package build fails.
     381    # Write installed files log and remove the build directory(ies)
     382    # except if the package build fails.
    369383    if [ "$pkg_tarball" != "" ] ; then
    370384      CHROOT_wrt_RemoveBuildDirs "$name"
     385      if [ "${INSTALL_LOG}" = "y" ] && [ "x${N}" = "x" ] ; then
     386        CHROOT_wrt_LogNewFiles "$name"
     387      fi
    371388    fi
    372389    #
     
    428445    case "${this_script}" in
    429446      *bootscripts*)
     447        if [ "${INSTALL_LOG}" = "y" ] ; then
     448          CHROOT_wrt_TouchTimestamp
     449        fi
    430450        CHROOT_Unpack $(get_package_tarball_name "lfs-bootscripts")
    431451        blfs_bootscripts=$(get_package_tarball_name "blfs-bootscripts" | sed -e 's/.tar.*//' )
     
    435455        name="linux"
    436456        pkg_tarball=$(get_package_tarball_name $name)
     457        if [ "${INSTALL_LOG}" = "y" ] ; then
     458          CHROOT_wrt_TouchTimestamp
     459        fi
    437460        CHROOT_Unpack "$pkg_tarball"
    438         ;;
     461        ;;
    439462    esac
    440463
     
    463486EOF
    464487) >> $MKFILE.tmp
     488          if [ "${INSTALL_LOG}" = "y" ] ; then
     489            CHROOT_wrt_LogNewFiles "$name"
     490          fi
    465491       ;;
    466       *kernel)       CHROOT_wrt_RemoveBuildDirs "dummy" ;;
     492      *kernel)       CHROOT_wrt_RemoveBuildDirs "dummy"
     493                     if [ "${INSTALL_LOG}" = "y" ] ; then
     494                       CHROOT_wrt_LogNewFiles "$name"
     495                     fi ;;
    467496    esac
    468497
Note: See TracChangeset for help on using the changeset viewer.