- Timestamp:
- 06/29/2017 08:25:01 AM (7 years ago)
- Branches:
- ablfs-more, legacy, trunk
- Children:
- 6990d80
- Parents:
- 59bb076
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
r59bb076 r973c767 452 452 <xsl:param name="bootpkg" select="'bootscripts'"/> 453 453 <xsl:param name="url" select="''"/> 454 <xsl:text>[[ ! -d $SRC_DIR/blfs-</xsl:text> 455 <xsl:copy-of select="$bootpkg"/> 456 <xsl:text> ]] && mkdir $SRC_DIR/blfs-</xsl:text> 454 <xsl:text>BOOTPKG_DIR=blfs-</xsl:text> 457 455 <xsl:copy-of select="$bootpkg"/> 458 456 <xsl:text> 459 pushd $SRC_DIR/blfs-</xsl:text> 460 <xsl:copy-of select="$bootpkg"/> 461 <xsl:text> 457 BOOTSRC_DIR=${SRC_ARCHIVE}${SRC_SUBDIRS:+/${BOOTPKG_DIR}} 458 BOOTBUILD_DIR=${BUILD_ROOT}${BUILD_SUBDIRS:+/${BOOTPKG_DIR}} 459 mkdir -p $BOOTSRC_DIR 460 mkdir -p $BOOTBUILD_DIR 461 462 pushd $BOOTSRC_DIR 462 463 URL=</xsl:text> 463 464 <xsl:value-of select="$url"/> … … 465 466 BOOTPACKG=$(basename $URL) 466 467 if [[ ! -f $BOOTPACKG ]] ; then 467 if [[ -f $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG ]] ; then 468 cp $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG $BOOTPACKG 469 elif [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then 468 if [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then 470 469 cp $SRC_ARCHIVE/$BOOTPACKG $BOOTPACKG 471 470 else 472 471 wget -T 30 -t 5 $URL 473 cp $BOOTPACKG $SRC_ARCHIVE474 472 fi 475 rm -f unpacked473 rm -f $BOOTBUILD_DIR/unpacked 476 474 fi 477 475 476 cd $BOOTBUILD_DIR 478 477 if [[ -e unpacked ]] ; then 479 478 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 480 479 if ! [[ -d $BOOTUNPACKDIR ]]; then 481 rm unpacked 482 tar -xvf $BOOTPACKG > unpacked 480 tar -xvf $BOOTSRC_DIR/$BOOTPACKG > unpacked 483 481 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 484 482 fi 485 483 else 486 tar -xvf $BOOT PACKG > unpacked484 tar -xvf $BOOTSRC_DIR/$BOOTPACKG > unpacked 487 485 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 488 486 fi
Note:
See TracChangeset
for help on using the changeset viewer.