Changeset 1caf1f4 for BLFS


Ignore:
Timestamp:
07/27/2007 07:34:13 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:
7a84ba7
Parents:
a70c289
Message:

BLFS: Fixed a bug on the previous commit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BLFS/libs/scripts.xsl

    ra70c289 r1caf1f4  
    186186        <xsl:apply-templates select="../sect2[@role='package']/itemizedlist/listitem/para" mode="xorg7-patch"/>
    187187        <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
     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}
    197197    else
    198       wget ${FTP_SERVER}conglomeration/Xorg/$line || \
    199       wget http://xorg.freedesktop.org/releases/individual/util/$line
     198      wget ${FTP_SERVER}conglomeration/Xorg/${line} || \
     199      wget http://xorg.freedesktop.org/releases/individual/${section}/${line}
    200200    fi
    201201  fi
     
    208208        <xsl:text>for package in $(grep -v '^#' ../${sect-ver}.wget) ; do
    209209  packagedir=$(echo $package | sed 's/.tar.bz2//')
    210   tar -xf $package
    211   cd $packagedir&#xA;</xsl:text>
     210  tar -xf ${package}
     211  cd ${packagedir}&#xA;</xsl:text>
    212212        <xsl:apply-templates select=".//screen | .//para/command"/>
    213213        <xsl:text>  cd ..
    214   rm -rf $packagedir
     214  rm -rf ${packagedir}
    215215  sed -i "/${package}/d" ../${sect-ver}.wget
    216216  sed -i "/${package}/d" ../${sect-ver}.md5
Note: See TracChangeset for help on using the changeset viewer.