Changeset a70c289 for BLFS


Ignore:
Timestamp:
07/27/2007 07:14:48 PM (17 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
1caf1f4
Parents:
5fb652f
Message:

BLFS: Added SRC_ARCHIVE and resume support to Xorg7 packages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    r5fb652f ra70c289  
    180180      </xsl:when>
    181181      <xsl:when test="not(@role)">
    182         <xsl:apply-templates select=".//screen"/>
     182        <xsl:text>SRC_ARCHIVE=$SRC_ARCHIVE
     183FTP_SERVER=$FTP_SERVER&#xA;</xsl:text>
     184        <xsl:apply-templates select=".//screen" mode="sect-ver"/>
     185        <xsl:text>mkdir -p ${section}&#xA;cd ${section}&#xA;</xsl:text>
    183186        <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" mode="xorg7-patch"/>
    184         <xsl:apply-templates select=".//screen" mode="sect-ver"/>
     187        <xsl:text>for line in $(grep -v '^#' ../${sect-ver}.wget) ; do
     188  if [[ ! -f $line ]] ; then
     189    if [[ -f $SRC_ARCHIVE/Xorg/$section/$line ]] ; then
     190      cp $SRC_ARCHIVE/Xorg/$section/$line $line
     191    elif [[ -f $SRC_ARCHIVE/Xorg/$line ]] ; then
     192      cp $SRC_ARCHIVE/Xorg/$line $line
     193    elif [[ -f $SRC_ARCHIVE/$section/$line ]] ; then
     194      cp $SRC_ARCHIVE/$section/$line $line
     195    elif [[ -f $SRC_ARCHIVE/$line ]] ; then
     196      cp $SRC_ARCHIVE/$line $line
     197    else
     198      wget ${FTP_SERVER}conglomeration/Xorg/$line || \
     199      wget http://xorg.freedesktop.org/releases/individual/util/$line
     200    fi
     201  fi
     202done
     203md5sum -c ../${sect-ver}.md5
     204cp ../${sect-ver}.wget ../${sect-ver}.wget.orig
     205cp ../${sect-ver}.md5 ../${sect-ver}.md5.orig&#xA;</xsl:text>
    185206      </xsl:when>
    186207      <xsl:when test="@role = 'installation'">
     
    192213        <xsl:text>  cd ..
    193214  rm -rf $packagedir
    194 done&#xA;</xsl:text>
     215  sed -i "/${package}/d" ../${sect-ver}.wget
     216  sed -i "/${package}/d" ../${sect-ver}.md5
     217done
     218mv ../${sect-ver}.wget.orig ../${sect-ver}.wget
     219mv ../${sect-ver}.md5.orig ../${sect-ver}.md5&#xA;</xsl:text>
    195220        <xsl:if test="$sudo = 'y'">
    196221          <xsl:text>sudo /sbin/</xsl:text>
     
    434459
    435460  <xsl:template match="screen" mode="sect-ver">
    436     <xsl:text>sect-ver=</xsl:text>
     461    <xsl:text>section=</xsl:text>
     462    <xsl:value-of select="substring-before(substring-after(string(),'mkdir '),' &amp;')"/>
     463    <xsl:text>&#xA;sect-ver=</xsl:text>
    437464    <xsl:value-of select="substring-before(substring-after(string(),'-c ../'),'.md5')"/>
    438465    <xsl:text>&#xA;</xsl:text>
Note: See TracChangeset for help on using the changeset viewer.