- Timestamp:
- 03/16/2017 12:45:11 PM (8 years ago)
- Branches:
- new_features
- Children:
- fc0802b
- Parents:
- 50618eeb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
r50618eeb r54380e5 229 229 <xsl:text>
if [[ ! -f $</xsl:text> 230 230 <xsl:value-of select="$varname"/> 231 <xsl:text> ]] ; then
</xsl:text> 232 <!-- This whole code becomes obsolete because now, it is there or we 233 download; keeping for now, and we may want to grab it from 234 SRC_ARCHIVE when SRC_SUBDIRS is set... 235 <xsl:text> if [[ -f $SRC_ARCHIVE/$PKG_DIR/$</xsl:text> 236 <xsl:value-of select="$varname"/> 237 <xsl:text> ]] ; then
</xsl:text> 238 <xsl:text> cp $SRC_ARCHIVE/$PKG_DIR/$</xsl:text> 239 <xsl:value-of select="$varname"/> 240 <xsl:text> $</xsl:text> 241 <xsl:value-of select="$varname"/> 242 <xsl:text>
</xsl:text> 243 <xsl:text> elif [[ -f $SRC_ARCHIVE/$</xsl:text> 231 <xsl:text> ]] ; then 232 if [[ -f $SRC_ARCHIVE/$</xsl:text> 244 233 <xsl:value-of select="$varname"/> 245 234 <xsl:text> ]] ; then
</xsl:text> … … 248 237 <xsl:text> $</xsl:text> 249 238 <xsl:value-of select="$varname"/> 250 <xsl:text>
 else
</xsl:text> --> 239 <xsl:text> 240 else
</xsl:text> 251 241 <!-- Download from upstream http --> 252 242 <xsl:if test="string-length($httpurl) > 10"> 253 <xsl:text> wget -T 30 -t 5 </xsl:text>243 <xsl:text> wget -T 30 -t 5 </xsl:text> 254 244 <xsl:value-of select="$httpurl"/> 255 245 <xsl:text> ||
</xsl:text> … … 257 247 <!-- Download from upstream ftp --> 258 248 <xsl:if test="string-length($ftpurl) > 10"> 259 <xsl:text> wget -T 30 -t 5 </xsl:text>249 <xsl:text> wget -T 30 -t 5 </xsl:text> 260 250 <xsl:value-of select="$ftpurl"/> 261 251 <xsl:text> ||
</xsl:text> 262 252 </xsl:if> 263 253 <!-- The FTP_SERVER mirror as a last resort --> 264 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text>254 <xsl:text> wget -T 30 -t 5 ${FTP_SERVER}svn/</xsl:text> 265 255 <xsl:value-of select="$first_letter"/> 266 256 <xsl:text>/$</xsl:text> 267 257 <xsl:value-of select="$varname"/> 268 <xsl:text> 269 <!--cp $</xsl:text>258 <xsl:text><!-- 259 cp $</xsl:text> 270 260 <xsl:value-of select="$varname"/> 271 <xsl:text> $SRC_ARCHIVE 272 fi -->261 <xsl:text> $SRC_ARCHIVE--> 262 fi 273 263 fi 274 264 </xsl:text> … … 284 274 be there--> 285 275 <xsl:if test="string($varname) != 'PACKAGE'"> 286 <xsl:text> 287 [[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$</xsl:text> 276 <xsl:text>[[ "$SRC_DIR" != "$BUILD_DIR" ]] && ln -sf $SRC_DIR/$</xsl:text> 288 277 <xsl:value-of select="$varname"/> 289 278 <xsl:text> $BUILD_DIR
Note:
See TracChangeset
for help on using the changeset viewer.