Changeset be9970b
- Timestamp:
- 10/28/2005 06:48:53 PM (19 years ago)
- Branches:
- 0.2, 1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
- Children:
- 1fb586e
- Parents:
- bf1c3ba
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
dump-lfs-scripts.xsl
rbf1c3ba rbe9970b 100 100 <xsl:when test="contains(string(),'tar.gz')"> 101 101 <xsl:value-of select="substring-before(string(),'tar.gz')"/> 102 <xsl:text>tar. bz2</xsl:text>102 <xsl:text>tar.*</xsl:text> 103 103 <xsl:value-of select="substring-after(string(),'tar.gz')"/> 104 104 <xsl:text>
</xsl:text> -
functions
rbf1c3ba rbe9970b 14 14 15 15 define unpack 16 @cd $(LFS)$(SRC) ; tar -xvjf $(1) > /tmp/unpacked 16 @if [ -f $(LFS)$(SRC)/$(1).bz2 ] ; then \ 17 cd $(LFS)$(SRC) ; tar -xvjf $(1).bz2 > /tmp/unpacked ; \ 18 else \ 19 cd $(LFS)$(SRC) ; tar -xvzf $(1).gz > /tmp/unpacked ; \ 20 fi ; 21 endef 22 23 define unpack2 24 @cd $(LFS)$(SRC) ; /tools/bin/tar -xvf $(1) > /tmp/unpacked 17 25 endef 18 26 -
jhalfs
rbf1c3ba rbe9970b 360 360 if [ "$vrs" != "" ] ; then 361 361 if [ "$name" = "tcl" ] ; then 362 FILE="$name$vrs-src.tar .bz2"362 FILE="$name$vrs-src.tar" 363 363 else 364 FILE="$name-$vrs.tar .bz2"364 FILE="$name-$vrs.tar" 365 365 fi 366 366 … … 512 512 # Insert instructions for unpacking the package and changing directories 513 513 if [ "$vrs" != "" ] ; then 514 FILE="$name-$vrs.tar. bz2"514 FILE="$name-$vrs.tar.*" 515 515 ( 516 516 cat << EOF 517 @\$(call unpack ,$FILE)517 @\$(call unpack2,$FILE) 518 518 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\ 519 519 echo "PKGDIR=\$(SRC)/\$\$ROOT" > envars && \\ … … 648 648 if [[ `_IS_ $i bootscripts` ]] ; then 649 649 vrs=`grep "^lfs-bootscripts-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'` 650 FILE="lfs-bootscripts-$vrs.tar. bz2"650 FILE="lfs-bootscripts-$vrs.tar.*" 651 651 elif [[ `_IS_ $i kernel` ]] ; then 652 652 vrs=`grep "^linux-version" $JHALFSDIR/packages | sed -e 's/.* //' -e 's/"//g'` 653 FILE="linux-$vrs.tar. bz2"653 FILE="linux-$vrs.tar.*" 654 654 fi 655 655 ( 656 656 cat << EOF 657 @\$(call unpack ,$FILE)657 @\$(call unpack2,$FILE) 658 658 @ROOT=\`head -n1 /tmp/unpacked | sed 's@^./@@;s@/.*@@'\` && \\ 659 659 echo "PKGDIR=\$(SRC)/\$\$ROOT" > envars && \\
Note:
See TracChangeset
for help on using the changeset viewer.