Add possibility for lzma extension when untarring in BLFS tools

This commit is contained in:
Pierre Labastie 2016-01-30 08:33:14 +00:00
parent 5f154f1a1f
commit e6967a11b1

View file

@ -104,7 +104,7 @@ find . -maxdepth 1 -mindepth 1 -type d | xargs </xsl:text>
</xsl:if> </xsl:if>
<xsl:text>rm -rf <xsl:text>rm -rf
case $PACKAGE in case $PACKAGE in
*.tar.gz|*.tar.bz2|*.tar.xz|*.tgz) *.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
tar -xvf $PACKAGE &gt; unpacked tar -xvf $PACKAGE &gt; unpacked
UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'` UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'`
;; ;;