Ignore:
Timestamp:
12/11/2006 06:21:16 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:
5932971
Parents:
de22e80
Message:

Added BLFS_TOOL support to CLFS2 and some bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_blfs_deps

    rde22e80 rcd4466f  
    145145    # Drop in the name of the target on a new line, and the previous target
    146146    # as a dependency. Also call the echo_message function.
    147     CHROOT_wrt_target "${this_script}" "$PREV"
     147    if [ "$PROGNAME" = "clfs2" ]; then
     148      LUSER_wrt_target "${this_script}" "$PREV"
     149    else
     150      CHROOT_wrt_target "${this_script}" "$PREV"
     151    fi
    148152
    149153    # Insert instructions for unpacking the package and changing directories
    150154    # DocBook-XML is a zip, the build script will handle that.
    151     [[ ! "$name" = "docbook-xml" ]] && CHROOT_Unpack "$pkg_tarball"
     155    if [ "$PROGNAME" = "clfs2" ]; then
     156      [[ ! "$name" = "docbook-xml" ]] && LUSER_wrt_unpack "$pkg_tarball"
     157    else
     158      [[ ! "$name" = "docbook-xml" ]] && CHROOT_Unpack "$pkg_tarball"
     159    fi
    152160
    153161    # Run the script.
    154     CHROOT_wrt_RunAsRoot "$file"
     162    if [ "$PROGNAME" = "clfs2" ]; then
     163      LUSER_wrt_RunAsUser "${file}"
     164    else
     165      CHROOT_wrt_RunAsRoot "$file"
     166    fi
    155167
    156168    # Remove the build directory(ies) except if the package build fails.
    157     [[ ! "$name" = "docbook-xml" ]] && CHROOT_wrt_RemoveBuildDirs "$name"
     169    if [ "$PROGNAME" = "clfs2" ]; then
     170      [[ ! "$name" = "docbook-xml" ]] && LUSER_RemoveBuildDirs "$name"
     171    else
     172      [[ ! "$name" = "docbook-xml" ]] && CHROOT_wrt_RemoveBuildDirs "$name"
     173    fi
    158174
    159175    # Touch the tracking file.
     
    163179      * )     pkg_ver=$(echo $pkg_tarball | sed -e 's/.tar.*//;s/.tgz//;s/.zip//') ;;
    164180    esac
    165     echo  "\$(tab_)@touch $TRACKING_DIR/$pkg_ver" >>  $MKFILE.tmp
     181    if [ "$PROGNAME" = "clfs2" ]; then
     182      echo -e "\t@touch \$(MOUNT_PT)$TRACKING_DIR/$pkg_ver" >>  $MKFILE.tmp
     183    else
     184      echo -e "\t@touch $TRACKING_DIR/$pkg_ver" >>  $MKFILE.tmp
     185    fi
    166186
    167187    # Include a touch of the target name so make can check
Note: See TracChangeset for help on using the changeset viewer.