Changeset f546320 for CLFS3


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
  • CLFS3/master.sh

    r350625a rf546320  
    268268    # If $pkg_tarball isn't empty, we've got a package...
    269269    if [ "$pkg_tarball" != "" ] ; then
     270      # Touch timestamp file if installed files logs will be created.
     271      # But only for the firt build when running iterative builds.
     272      if [ "${INSTALL_LOG}" = "y" ] ; then
     273        LUSER_wrt_TouchTimestamp
     274      fi
    270275      LUSER_wrt_unpack "$pkg_tarball"
    271276      # If using optimizations, write the instructions
     
    275280    LUSER_wrt_RunAsUser "${file}"
    276281    #
    277     [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
     282    # Write installed files log and remove the build directory(ies)
     283    # except if the package build fails.
     284    if [ "$pkg_tarball" != "" ] ; then
     285      LUSER_RemoveBuildDirs "${name}"
     286      if [ "${INSTALL_LOG}" = "y" ] ; then
     287        LUSER_wrt_LogNewFiles "$name"
     288      fi
     289    fi
    278290    #
    279291    # Include a touch of the target name so make can check if it's already been made.
     
    331343    #
    332344    # If $pkg_tarball isn't empty, we've got a package...
    333     [[ "$pkg_tarball" != "" ]] && LUSER_wrt_unpack "$pkg_tarball"
     345    if [ "$pkg_tarball" != "" ] ; then
     346      LUSER_wrt_unpack "$pkg_tarball"
     347      if [ "${INSTALL_LOG}" = "y" ] ; then
     348        LUSER_wrt_TouchTimestamp
     349      fi
     350    fi
    334351    #
    335352    LUSER_wrt_RunAsUser "${file}"
    336353    #
    337     [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
     354    if [ "$pkg_tarball" != "" ] ; then
     355      LUSER_RemoveBuildDirs "${name}"
     356      if [ "${INSTALL_LOG}" = "y" ] ; then
     357        LUSER_wrt_LogNewFiles "$name"
     358      fi
     359    fi
    338360    #
    339361    # Include a touch of the target name so make can check if it's already been made.
     
    399421    #
    400422    # If $pkg_tarball isn't empty, we've got a package...
    401     [[ "$pkg_tarball" != "" ]] && LUSER_wrt_unpack "$pkg_tarball"
     423    if [ "$pkg_tarball" != "" ] ; then
     424      LUSER_wrt_unpack "$pkg_tarball"
     425      if [ "${INSTALL_LOG}" = "y" ] ; then
     426        LUSER_wrt_TouchTimestamp
     427      fi
     428    fi
    402429    #
    403430    # Select a script execution method
     
    416443    #
    417444    # Housekeeping...remove any build directory(ies) except if the package build fails.
    418     [[ "$pkg_tarball" != "" ]] && LUSER_RemoveBuildDirs "${name}"
     445    if [ "$pkg_tarball" != "" ] ; then
     446      LUSER_RemoveBuildDirs "${name}"
     447      if [ "${INSTALL_LOG}" = "y" ] ; then
     448        LUSER_wrt_LogNewFiles "$name"
     449      fi
     450    fi
    419451    #
    420452    # Include a touch of the target name so make can check if it's already been made.
Note: See TracChangeset for help on using the changeset viewer.