Changeset 4954fdf for BLFS/xsl/scripts.xsl
- Timestamp:
- 06/29/2017 08:22:13 AM (7 years ago)
- Branches:
- 2.4
- Children:
- e218205
- Parents:
- b37d5e3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BLFS/xsl/scripts.xsl
rb37d5e3 r4954fdf 427 427 <xsl:param name="bootpkg" select="'bootscripts'"/> 428 428 <xsl:param name="url" select="''"/> 429 <xsl:text>[[ ! -d $SRC_DIR/blfs-</xsl:text> 430 <xsl:copy-of select="$bootpkg"/> 431 <xsl:text> ]] && mkdir $SRC_DIR/blfs-</xsl:text> 429 <xsl:text>BOOTPKG_DIR=blfs-</xsl:text> 432 430 <xsl:copy-of select="$bootpkg"/> 433 431 <xsl:text> 434 pushd $SRC_DIR/blfs-</xsl:text> 435 <xsl:copy-of select="$bootpkg"/> 436 <xsl:text> 432 BOOTSRC_DIR=${SRC_ARCHIVE}${SRC_SUBDIRS:+/${BOOTPKG_DIR}} 433 BOOTBUILD_DIR=${BUILD_ROOT}${BUILD_SUBDIRS:+/${BOOTPKG_DIR}} 434 mkdir -p $BOOTSRC_DIR 435 mkdir -p $BOOTBUILD_DIR 436 437 pushd $BOOTSRC_DIR 437 438 URL=</xsl:text> 438 439 <xsl:value-of select="$url"/> … … 440 441 BOOTPACKG=$(basename $URL) 441 442 if [[ ! -f $BOOTPACKG ]] ; then 442 if [[ -f $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG ]] ; then 443 cp $SRC_ARCHIVE/$PKG_DIR/$BOOTPACKG $BOOTPACKG 444 elif [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then 443 if [[ -f $SRC_ARCHIVE/$BOOTPACKG ]] ; then 445 444 cp $SRC_ARCHIVE/$BOOTPACKG $BOOTPACKG 446 445 else 447 446 wget -T 30 -t 5 $URL 448 cp $BOOTPACKG $SRC_ARCHIVE449 447 fi 450 rm -f unpacked448 rm -f $BOOTBUILD_DIR/unpacked 451 449 fi 452 450 451 cd $BOOTBUILD_DIR 453 452 if [[ -e unpacked ]] ; then 454 453 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 455 454 if ! [[ -d $BOOTUNPACKDIR ]]; then 456 rm unpacked 457 tar -xvf $BOOTPACKG > unpacked 455 tar -xvf $BOOTSRC_DIR/$BOOTPACKG > unpacked 458 456 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 459 457 fi 460 458 else 461 tar -xvf $BOOT PACKG > unpacked459 tar -xvf $BOOTSRC_DIR/$BOOTPACKG > unpacked 462 460 BOOTUNPACKDIR=`head -n1 unpacked | sed 's@^./@@;s@/.*@@'` 463 461 fi
Note:
See TracChangeset
for help on using the changeset viewer.