Changeset 3e7af38 for HLFS/master.sh
- Timestamp:
- 05/01/2006 11:10:53 AM (18 years ago)
- Branches:
- experimental
- Children:
- 65d83a6
- Parents:
- c58f330
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
HLFS/master.sh
rc58f330 r3e7af38 7 7 ### FUNCTIONS ### 8 8 ################################### 9 10 11 #----------------------------#12 get_sources() { #13 #----------------------------#14 local IFS15 16 # Test if the packages must be downloaded17 if [ ! "$HPKG" = "1" ] ; then18 return19 fi20 21 # Modify the 'internal field separator' to break on 'LF' only22 IFS=$'\x0A'23 24 if [ ! -d $BUILDDIR/sources ] ; then mkdir $BUILDDIR/sources ; fi25 cd $BUILDDIR/sources26 27 > MISSING_FILES.DMP # Files not in md5sum end up here28 29 if [ -f MD5SUMS ] ; then rm MD5SUMS ; fi30 if [ -f MD5SUMS-$VERSION ] ; then rm MD5SUMS-$VERSION ; fi31 32 # Retrieve the master md5sum file33 download "" MD5SUMS34 35 # Iterate through each package and grab it, along with any patches it needs.36 for i in `cat $JHALFSDIR/packages` ; do37 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" in45 "gcc" )46 download $PKG "gcc-core-$VRS.tar.bz2"47 download $PKG "gcc-g++-$VRS.tar.bz2"48 if [ ! "$TEST" = "0" ] ; then49 download $PKG "gcc-testsuite-$VRS.tar.bz2" ;50 fi51 ;;52 53 "glibc")54 if [ "$MODEL" = "glibc" ] ; then55 download $PKG "$PKG-$VRS.tar.bz2"56 download $PKG "$PKG-libidn-$VRS.tar.bz2"57 fi58 ;;59 60 "tcl" )61 FILE="$PKG$VRS-src.tar.bz2" ; download $PKG $FILE ;;62 63 "uclibc" )64 if [ "$MODEL" = "uclibc" ] ; then65 download $PKG "$PKG-$VRS.tar.bz2"66 fi67 ;;68 69 "uClibc-locale" )70 if [ "$MODEL" = "uclibc" ] ; then71 FILE="$PKG-$VRS.tgz" ; PKG="uClibc"72 download $PKG $FILE73 # There can be no patches for this file74 continue75 fi76 ;;77 78 "uClibc-patch" ) continue ;;79 80 * )81 FILE="$PKG-$VRS.tar.bz2" ; download $PKG $FILE ;;82 esac83 84 for patch in `grep "$PKG-&$PKG" $JHALFSDIR/patches` ; do85 PATCH=`echo $patch | sed 's@&'$PKG'-version;@'$VRS'@'`86 download $PKG $PATCH87 done88 89 done90 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 ]]; then95 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 fi97 }98 9 99 10
Note:
See TracChangeset
for help on using the changeset viewer.