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
  • common/common-functions

    rc044e3c ra160d86  
    684684  local IFS line URL1 URL2 FILE BOOKMD5 MD5 HAVEMD5 fromARCHIVE
    685685
     686  # ALWAYS create a list of the full filenames
     687  create_package_list
     688
    686689    # Test if the packages must be downloaded
    687690  [ ! "$GETPKG" = "1" ] && return
     
    799802    RUNMAKE=0
    800803  fi
     804}
     805
     806#----------------------------#
     807create_package_list() {      #
     808#----------------------------#
     809
     810  # Create the packages file. We need it for proper Makefile creation
     811  echo -n "Creating <${PROGNAME}> list of tarball names for $BOOK $ARCH"
     812  case ${PROGNAME} in
     813    clfs)
     814        xsltproc --nonet \
     815                 --xinclude \
     816                 -o pkg_tarball_list packages.xsl $BOOK/${ARCH}-index.xml
     817      ;;
     818    hlfs | lfs )
     819        xsltproc --nonet \
     820                 --xinclude \
     821                 -o pkg_tarball_list packages.xsl $BOOK/index.xml
     822      ;;
     823  esac
     824  echo " ...OK"
     825
    801826}
    802827
     
    837862  cd $BUILDDIR/sources
    838863}
     864
     865
     866#----------------------------#
     867get_package_tarball_name() { #
     868#----------------------------#
     869  local script_name=$1
     870
     871   # The use of 'head' is necessary to limit the return value to the FIRST match..
     872   # hopefully this will not cause problems.
     873   #
     874   case $script_name in
     875     tcl)   echo $(grep "^tcl" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;;
     876     *)     echo $(grep "^$script_name-[[:digit:]]" $JHALFSDIR/pkg_tarball_list | head -n1 ) ;;
     877   esac
     878
     879}
Note: See TracChangeset for help on using the changeset viewer.