Changeset a160d86 for LFS/master.sh


Ignore:
Timestamp:
06/20/2006 09:14:44 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
ddde18e
Parents:
c044e3c
Message:

Extensive code changes. A different method for finding the tarball name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LFS/master.sh

    rc044e3c ra160d86  
    107107    # Find the version of the command files, if it corresponds with the building of
    108108    # a specific package
    109     vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    110 
    111     # If $vrs isn't empty, we've got a package...
    112     if [ "$vrs" != "" ] ; then
    113       if [ "$name" = "tcl" ] ; then
    114         FILE="$name$vrs-src.tar.*"
    115       else
    116         FILE="$name-$vrs.tar.*"
    117       fi
    118 
     109    pkg_tarball=$(get_package_tarball_name $name)
     110
     111    # If $pkg_tarball isn't empty, we've got a package...
     112    if [ "$pkg_tarball" != "" ] ; then
    119113      # Insert instructions for unpacking the package and to set the PKGDIR variable.
    120       wrt_unpack "$FILE"
     114      wrt_unpack "$pkg_tarball"
    121115      # If the testsuites must be run, initialize the log file
    122116      [[ "$TEST" = "3" ]] && wrt_test_log "${this_script}"
     
    135129    # Remove the build directory(ies) except if the package build fails
    136130    # (so we can review config.cache, config.log, etc.)
    137     if [ "$vrs" != "" ] ; then
     131    if [ "$pkg_tarball" != "" ] ; then
    138132      wrt_remove_build_dirs "$name"
    139133    fi
     
    196190    # a specific package. We need this here to can skip scripts not needed for
    197191    # iterations rebuilds
    198     vrs=`grep "^$name-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    199 
    200     if [[ "$vrs" = "" ]] && [[ -n "$N" ]] ; then
     192    pkg_tarball=$(get_package_tarball_name $name)
     193
     194    if [[ "$pkg_tarball" = "" ]] && [[ -n "$N" ]] ; then
    201195      case "${this_script}" in
    202196        *stripping*) ;;
     
    221215    wrt_target "${this_script}${N}" "$PREV"
    222216
    223     # If $vrs isn't empty, we've got a package...
     217    # If $pkg_tarball isn't empty, we've got a package...
    224218    # Insert instructions for unpacking the package and changing directories
    225     if [ "$vrs" != "" ] ; then
    226       FILE="$name-$vrs.tar.*"
    227       wrt_unpack2 "$FILE"
     219    if [ "$pkg_tarball" != "" ] ; then
     220      wrt_unpack2 "$pkg_tarball"
    228221      # If the testsuites must be run, initialize the log file
    229222      case $name in
     
    247240
    248241    # Remove the build directory(ies) except if the package build fails.
    249     if [ "$vrs" != "" ] ; then
     242    if [ "$pkg_tarball" != "" ] ; then
    250243      wrt_remove_build_dirs "$name"
    251244    fi
     
    305298    case "${this_script}" in
    306299      *bootscripts)
    307           vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    308           FILE="lfs-bootscripts-$vrs.tar.*"
    309           wrt_unpack2 "$FILE"
     300            name="lfs-bootscripts"
     301            pkg_tarball=$(get_package_tarball_name $name)
     302            wrt_unpack2 "$pkg_tarball"
    310303        ;;
    311304      *kernel)
    312           vrs=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'`
    313           FILE="linux-$vrs.tar.*"
    314           wrt_unpack2 "$FILE"
     305            name="linux"
     306            pkg_tarball=$(get_package_tarball_name $name)
     307            wrt_unpack2 "$pkg_tarball"
    315308       ;;
    316309    esac
     
    503496            mount -vt proc proc \$(MOUNT_PT)/proc;\\
    504497          fi;\\
    505           if ! mount -l | grep "$\(MOUNT_PT)/sys" >/dev/null ; then \\
     498          if ! mount -l | grep "\$(MOUNT_PT)/sys" >/dev/null ; then \\
    506499            mount -vt sysfs sysfs \$(MOUNT_PT)/sys;\\
    507500          fi;\\
Note: See TracChangeset for help on using the changeset viewer.