- Timestamp:
- 02/29/2012 01:16:50 PM (13 years ago)
- Branches:
- ablfs
- Children:
- 63e068c
- Parents:
- 9d0e0eb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
r9d0e0eb rb9c5dc9 221 221 <xsl:value-of select="substring-before($sub-url,'?')"/> 222 222 </xsl:when> 223 <!-- Should never happen224 <xsl:when test="contains($sub-url,'.patch')"/> -->225 223 <xsl:otherwise> 226 224 <xsl:value-of select="$sub-url"/> … … 322 320 <xsl:choose> 323 321 <xsl:when test="contains(string(ulink/@url),'.patch')"> 322 <xsl:variable name="patch"> 323 <xsl:call-template name="package_name"> 324 <xsl:with-param name="url" select="ulink/@url"/> 325 </xsl:call-template> 326 </xsl:variable> 327 <xsl:text>PATCH=</xsl:text> 328 <xsl:value-of select="$patch"/> 329 <xsl:text>
if [[ ! -f $PATCH ]] ; then
</xsl:text> 330 <!-- SRC_ARCHIVE may have subdirectories or not --> 331 <xsl:text> if [[ -f $SRC_ARCHIVE/$PKG_DIR/$PATCH ]] ; then
</xsl:text> 332 <xsl:text> cp $SRC_ARCHIVE/$PKG_DIR/$PATCH $PATCH
</xsl:text> 333 <xsl:text> elif [[ -f $SRC_ARCHIVE/$PATCH ]] ; then
</xsl:text> 334 <xsl:text> cp $SRC_ARCHIVE/$PATCH $PATCH
 else
</xsl:text> 324 335 <xsl:text>wget -T 30 -t 5 </xsl:text> 325 336 <xsl:value-of select="ulink/@url"/> 326 337 <xsl:text>
</xsl:text> 338 <xsl:text>
 fi
fi
</xsl:text> 327 339 </xsl:when> 328 340 <xsl:when test="ulink"> … … 347 359 <xsl:text> cp $SRC_ARCHIVE/$PACKAGE1 $PACKAGE1
 else
</xsl:text> 348 360 <!-- The FTP_SERVER mirror --> 349 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER} blfs/svn/</xsl:text>361 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text> 350 362 <xsl:value-of select="$first_letter"/> 351 363 <xsl:text>/$PACKAGE1</xsl:text>
Note:
See TracChangeset
for help on using the changeset viewer.