Changeset 3e7af38 for HLFS/master.sh


Ignore:
Timestamp:
05/01/2006 11:10:53 AM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
65d83a6
Parents:
c58f330
Message:

Keeping sinchronized experimental branch with trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    rc58f330 r3e7af38  
    77###          FUNCTIONS          ###
    88###################################
    9 
    10 
    11 #----------------------------#
    12 get_sources() {              #
    13 #----------------------------#
    14   local IFS
    15 
    16   # Test if the packages must be downloaded
    17   if [ ! "$HPKG" = "1" ] ; then
    18     return
    19   fi
    20 
    21   # Modify the 'internal field separator' to break on 'LF' only
    22   IFS=$'\x0A'
    23 
    24   if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi
    25   cd $BUILDDIR/sources
    26 
    27   > MISSING_FILES.DMP  # Files not in md5sum end up here
    28 
    29   if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi
    30   if [ -f MD5SUMS-$VERSION ] ; then rm MD5SUMS-$VERSION ; fi
    31 
    32   # Retrieve the master md5sum file
    33   download "" MD5SUMS
    34 
    35   # Iterate through each package and grab it, along with any patches it needs.
    36   for i in `cat $JHALFSDIR/packages` ; do
    37     PKG=`echo $i | sed -e 's/-version.*//' \
    38                        -e 's/uclibc/uClibc/' `
    39 
    40     #
    41     # How to deal with orphan packages..??
    42     #
    43     VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
    44     case "$PKG" in
    45       "gcc" )
    46         download $PKG "gcc-core-$VRS.tar.bz2"
    47         download $PKG "gcc-g++-$VRS.tar.bz2"
    48         if [ ! "$TEST" = "0" ] ; then
    49           download $PKG "gcc-testsuite-$VRS.tar.bz2" ;
    50         fi
    51         ;;
    52 
    53       "glibc")
    54         if [ "$MODEL" = "glibc" ] ; then
    55           download $PKG "$PKG-$VRS.tar.bz2"
    56           download $PKG "$PKG-libidn-$VRS.tar.bz2"
    57         fi
    58         ;;
    59 
    60       "tcl" )
    61         FILE="$PKG$VRS-src.tar.bz2" ; download $PKG $FILE ;;
    62 
    63       "uclibc" )
    64         if [ "$MODEL" = "uclibc" ] ; then
    65           download $PKG "$PKG-$VRS.tar.bz2"
    66         fi
    67         ;;
    68 
    69       "uClibc-locale" )
    70         if [ "$MODEL" = "uclibc" ] ; then
    71           FILE="$PKG-$VRS.tgz" ; PKG="uClibc"
    72           download $PKG $FILE
    73           # There can be no patches for this file
    74           continue
    75         fi
    76         ;;
    77 
    78       "uClibc-patch" )      continue ;;
    79 
    80       * )
    81         FILE="$PKG-$VRS.tar.bz2" ;  download $PKG $FILE ;;
    82     esac
    83 
    84     for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do
    85       PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`
    86       download $PKG $PATCH
    87     done
    88 
    89   done
    90 
    91   # .... U G L Y .... what to do with the grsecurity patch to the kernel..
    92   download grsecurity `grep grsecurity $JHALFSDIR/patches`
    93 
    94   if [[ -s $BUILDDIR/sources/MISSING_FILES.DMP ]]; then
    95     echo  -e "\n\n${tab_}${RED} One or more files were not retrieved.\n${tab_} Check <MISSING_FILES.DMP> for names ${OFF}\n\n"
    96   fi
    97 }
    989
    9910
Note: See TracChangeset for help on using the changeset viewer.