Changeset c940100 for HLFS


Ignore:
Timestamp:
03/20/2006 09:53:24 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
7161bc9
Parents:
adfc5b8
Message:

Download only the packages and patches required by each libc implementation.

Location:
HLFS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • HLFS/master.sh

    radfc5b8 rc940100  
    3636  for i in `cat $JHALFSDIR/packages` ; do
    3737    PKG=`echo $i | sed -e 's/-version.*//' \
    38                        -e 's/-file.*//' \
    3938                       -e 's/uclibc/uClibc/' `
    4039
     
    4443    VRS=`echo $i | sed -e 's/.* //' -e 's/"//g'`
    4544    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
    4678      "uClibc-patch" )      continue ;;
    4779
    48       "tcl" )   FILE="$PKG$VRS-src.tar.bz2" ; download $PKG $FILE ;;
    49 
    50       "uClibc-locale" ) FILE="$PKG-$VRS.tgz" ; PKG="uClibc"
    51                 download $PKG $FILE
    52                 # There can be no patches for this file
    53                 continue ;;
    54 
    55       "gcc" )   download $PKG "gcc-core-$VRS.tar.bz2"
    56                 download $PKG "gcc-g++-$VRS.tar.bz2"
    57                 if [ ! "$TEST" = "0" ] ; then
    58                   download $PKG "gcc-testsuite-$VRS.tar.bz2" ;
    59                 fi
    60         ;;
    61       "glibc")  download $PKG "$PKG-$VRS.tar.bz2"
    62                 download $PKG "$PKG-libidn-$VRS.tar.bz2"
    63         ;;
    64       * )     FILE="$PKG-$VRS.tar.bz2"
    65               download $PKG $FILE
    66         ;;
     80      * )
     81        FILE="$PKG-$VRS.tar.bz2" ;  download $PKG $FILE ;;
    6782    esac
    6883
  • HLFS/patcheslist.xsl

    radfc5b8 rc940100  
    11<?xml version='1.0' encoding='ISO-8859-1'?>
    22
    3 <!-- Get list of patch files from the BLFS Book -->
    4 <!-- $LastChangedBy$ -->
    5 <!-- $Date$ -->
     3<!-- $Id$ -->
     4<!-- Get list of patch files from the HLFS Book -->
    65
    76<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     
    109  <xsl:output method="text"/>
    1110
     11  <!-- What libc implentation must be used? -->
     12  <xsl:param name="model" select="glibc"/>
     13
    1214  <!-- No text needed -->
    1315  <xsl:template match="//text()">
     
    1517  </xsl:template>
    1618
    17   <!-- Just grab the url from the ulink tags that have .patch in the name -->
     19  <!-- Just grab the url from the patches.xml file -->
    1820  <xsl:template match="//ulink">
    19     <xsl:if test="contains(@url, '.patch') or contains(@url, '.patch.gz') and contains(@url, 'linuxfromscratch')">
     21    <xsl:if test="ancestor::varlistentry[@condition=$model]
     22            or not(ancestor::varlistentry[@condition])">
    2023       <xsl:value-of select="@url"/>
    2124       <xsl:text>&#x0a;</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.