r3891 - jhalfs/branches/new_features/BLFS/xsl

pierre at higgs.linuxfromscratch.org pierre at higgs.linuxfromscratch.org
Tue Feb 28 04:49:28 PST 2017


Author: pierre
Date: Tue Feb 28 04:49:28 2017
New Revision: 3891

Log:
Merge rev 3890 from trunk:
Fix Ed tarball download

Modified:
   jhalfs/branches/new_features/BLFS/xsl/scripts.xsl

Modified: jhalfs/branches/new_features/BLFS/xsl/scripts.xsl
==============================================================================
--- jhalfs/branches/new_features/BLFS/xsl/scripts.xsl	Tue Feb 28 04:46:52 2017	(r3890)
+++ jhalfs/branches/new_features/BLFS/xsl/scripts.xsl	Tue Feb 28 04:49:28 2017	(r3891)
@@ -112,7 +112,11 @@
 case $PACKAGE in
   *.tar.gz|*.tar.bz2|*.tar.xz|*.tgz|*.tar.lzma)
      tar -xvf $PACKAGE > unpacked
-     UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^./@@;s@/.*@@'`
+     UNPACKDIR=`grep '[^./]\+' unpacked | head -n1 | sed 's@^\./@@;s@/.*@@'`
+     ;;
+  *.tar.lz)
+     bsdtar -xvf $PACKAGE 2> unpacked
+     UNPACKDIR=`head -n1 unpacked | cut  -d" " -f2 | sed 's@^\./@@;s@/.*@@'`
      ;;
   *.zip)
      zipinfo -1 $PACKAGE > unpacked


More information about the alfs-log mailing list