Changeset 07f47df


Ignore:
Timestamp:
09/29/2005 07:14:06 PM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
a5e49c6
Parents:
44f88e3
Message:

Added switch to skipp packages dowload.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • jhalfs

    r44f88e3 r07f47df  
    2323  -D, --download-client=CLIENT  use CLIENT as the program for retrieving
    2424                                packages
    25   -T, --no-testsuites           don't run the package's testsuites.
     25  -T, --no-testsuites           don't run the package's testsuites
     26  -P, --have-packages           don't download the packages
    2627"
    2728
     
    8283      shift
    8384      TEST=1
     85      shift
     86      ;;
     87
     88    --have-packages | -P )
     89      shift
     90      HPKG=1
    8491      shift
    8592      ;;
     
    222229get_sources() {
    223230
    224   # This variable is necessary to make sure the `cat $JHALFSDIR/packages`
    225   # separates each iteration by lines.  It is necessary to have the second
    226   # ' on the next line.
    227   IFS='
     231  # Test if the packages must be downloaded
     232  if [ -z $HPKG ] ; then
     233
     234    # This variable is necessary to make sure the `cat $JHALFSDIR/packages`
     235    # separates each iteration by lines.  It is necessary to have the second
     236    # ' on the next line.
     237    IFS='
    228238'
    229239
    230   if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
    231   cd $BUILDDIR/sources
    232   if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi
    233 
    234   download "" MD5SUMS
    235 
    236   # Iterate through each package and grab it, along with any patches it needs.
    237   for i in `cat $JHALFSDIR/packages` ; do
    238     PKG=`echo $i | sed 's/-version.*//'`
    239 
    240     # Someone used some silly entities right next to the valid package entities.
    241     if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi
    242 
    243     VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
    244     if [ "$PKG" = "tcl" ] ; then
    245       FILE="$PKG$VRS-src.tar.bz2"
    246     else
    247       FILE="$PKG-$VRS.tar.bz2"
    248     fi
    249     download $PKG $FILE
    250     for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do
    251       PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`
    252       download $PKG $PATCH
     240    if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
     241    cd $BUILDDIR/sources
     242    if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi
     243
     244    download "" MD5SUMS
     245
     246    # Iterate through each package and grab it, along with any patches it needs.
     247    for i in `cat $JHALFSDIR/packages` ; do
     248      PKG=`echo $i | sed 's/-version.*//'`
     249
     250      # Someone used some silly entities right next to the valid package entities.
     251      if [ "$PKG" = "expect-lib" -o "$PKG" = "linux-dl" ] ; then continue ; fi
     252
     253      VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
     254      if [ "$PKG" = "tcl" ] ; then
     255        FILE="$PKG$VRS-src.tar.bz2"
     256      else
     257        FILE="$PKG-$VRS.tar.bz2"
     258      fi
     259      download $PKG $FILE
     260      for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do
     261        PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`
     262        download $PKG $PATCH
     263      done
    253264    done
    254   done
     265  fi
    255266}
    256267
     
    289300    fi
    290301
    291     # Insert instructions for unpacking the package and changing directories
     302    # Insert instructions for unpacking the package and to set
     303    # the PKGDIR variable.
    292304    echo -e "\t\$(call unpack-lfs,$FILE) && \\" >> $MKFILE.tmp
    293305    echo -e "\tROOT=\`head -n1 /tmp/unpacked | sed 's@/.*@@'\` && \\" >> $MKFILE.tmp
Note: See TracChangeset for help on using the changeset viewer.