Changeset e1edff3 for common


Ignore:
Timestamp:
03/15/2006 09:50:40 PM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
dbf2c71
Parents:
4bf0fc3
Message:

Added test for tar >1.15, ability to fetch/store packages from/to a local archive.

Location:
common
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r4bf0fc3 re1edff3  
    721721  DIR=`echo $1 | sed 's@-doc@@;s@-linuxthreads@@;s@-libidn@@;s@-testsuite@@'`
    722722
     723  # If the file exists in the archive copy it to the $BUILDDIR/sources dir
     724  # MD5SUM is assumed to be correct from previous download
     725  if [ ! -z ${SRC_ARCHIVE} ] &&
     726     [   -d ${SRC_ARCHIVE} ] &&
     727     [   -f ${SRC_ARCHIVE}/$2 ]; then
     728    cp ${SRC_ARCHIVE}/$2 .
     729    echo "$2: -- ok"
     730    return
     731  fi
     732
    723733  # Find the md5 sum for this package.
    724734  if [ $2 != MD5SUMS ] ; then
     
    754764    echo `grep "$MD5" MD5SUMS` >> MD5SUMS-$VERSION
    755765  fi
     766
     767  # If we make it this far we should copy the freshly downloaded file
     768  # to the source archive.
     769  if [ ! -z ${SRC_ARCHIVE} ] &&
     770     [   -d ${SRC_ARCHIVE} ] &&
     771     [   -w ${SRC_ARCHIVE} ] &&
     772     [ $2 != MD5SUMS ]; then
     773       echo "Store file:<$2> in package archive"
     774       cp -v $2 ${SRC_ARCHIVE}
     775  fi
     776
    756777}
    757778
  • common/config

    r4bf0fc3 re1edff3  
    1111#--- Mount point for the build
    1212BUILDDIR=/mnt/SourceFiles
     13
     14#--- The local repository for packages/file
     15#    Any downloaded files will be archived here
     16SRC_ARCHIVE=/mnt/SourceFiles/Source_Warehouse
    1317
    1418#--- Download the source packages 0(no)/1(yes)
  • common/func_check_version.sh

    r4bf0fc3 re1edff3  
    4242     exit 1
    4343  }
    44  
    45   echo -ne "$TXT:\t<${tst_version}>"
     44
     45  echo -ne "$TXT:\t${L_arrow}${BOLD}${tst_version}${OFF}${R_arrow}"
    4646  IFS=".-("   # Split up w.x.y.z as well as w.x.y-rc  (catch release candidates)
    4747  set -- $ref_version # set postional parameters to minimum ver values
Note: See TracChangeset for help on using the changeset viewer.