- Timestamp:
- 03/16/2017 12:49:01 PM (8 years ago)
- Branches:
- 2.4, ablfs-more, legacy, trunk
- Children:
- 2cf28dc
- Parents:
- 39dc04a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
r39dc04a r8dc4646 222 222 <xsl:text>
if [[ ! -f $</xsl:text> 223 223 <xsl:value-of select="$varname"/> 224 <xsl:text> ]] ; then
</xsl:text> 225 <!-- This whole code becomes obsolete because now, it is there or we 226 download; keeping for now, and we may want to grab it from 227 SRC_ARCHIVE when SRC_SUBDIRS is set... 228 <xsl:text> if [[ -f $SRC_ARCHIVE/$PKG_DIR/$</xsl:text> 229 <xsl:value-of select="$varname"/> 230 <xsl:text> ]] ; then
</xsl:text> 231 <xsl:text> cp $SRC_ARCHIVE/$PKG_DIR/$</xsl:text> 232 <xsl:value-of select="$varname"/> 233 <xsl:text> $</xsl:text> 234 <xsl:value-of select="$varname"/> 235 <xsl:text>
</xsl:text> 236 <xsl:text> elif [[ -f $SRC_ARCHIVE/$</xsl:text> 224 <xsl:text> ]] ; then 225 if [[ -f $SRC_ARCHIVE/$</xsl:text> 237 226 <xsl:value-of select="$varname"/> 238 227 <xsl:text> ]] ; then
</xsl:text> … … 241 230 <xsl:text> $</xsl:text> 242 231 <xsl:value-of select="$varname"/> 243 <xsl:text>
 else
</xsl:text> --> 232 <xsl:text> 233 else
</xsl:text> 244 234 <!-- Download from upstream http --> 245 235 <xsl:if test="string-length($httpurl) > 10"> 246 <xsl:text> wget -T 30 -t 5 </xsl:text>236 <xsl:text> wget -T 30 -t 5 </xsl:text> 247 237 <xsl:value-of select="$httpurl"/> 248 238 <xsl:text> ||
</xsl:text> … … 250 240 <!-- Download from upstream ftp --> 251 241 <xsl:if test="string-length($ftpurl) > 10"> 252 <xsl:text> wget -T 30 -t 5 </xsl:text>242 <xsl:text> wget -T 30 -t 5 </xsl:text> 253 243 <xsl:value-of select="$ftpurl"/> 254 244 <xsl:text> ||
</xsl:text> 255 245 </xsl:if> 256 246 <!-- The FTP_SERVER mirror as a last resort --> 257 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>247 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text> 258 248 <xsl:value-of select="$first_letter"/> 259 249 <xsl:text>/$</xsl:text> 260 250 <xsl:value-of select="$varname"/> 261 <xsl:text> 262 <!--cp $</xsl:text>263 <xsl:value-of select="$varname"/> 264 <xsl:text> $SRC_ARCHIVE 265 fi -->251 <xsl:text><!-- 252 cp $</xsl:text> 253 <xsl:value-of select="$varname"/> 254 <xsl:text> $SRC_ARCHIVE--> 255 fi 266 256 fi 267 257 </xsl:text> … … 277 267 be there--> 278 268 <xsl:if test="string($varname) != 'PACKAGE'"> 279 <xsl:text> 280 [[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$</xsl:text> 269 <xsl:text>[[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$</xsl:text> 281 270 <xsl:value-of select="$varname"/> 282 271 <xsl:text> $BUILD_DIR
Note:
See TracChangeset
for help on using the changeset viewer.