support .lz (lzip) compression

Andrew Cagney <[email protected]> Thu, 10 Dec 2015 15:07:24 -0500
Newsgroups gmane.linux.uclinux.devel
Message-ID <CAJeAr6sYezyXmoNm6TTyJ0xgUWk4oPbQZ-RcmFC3ukVV503Zdw@mail.gmail.com>
Surprise!  libgmp uses yet another compression format ...

My work-in-progress libgmp makefile tests it, trust me :-)

Andrew

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
lzip.diff (text/plain, 1 KB)
commit e66e173f93a09f25e6fd47763152c0e2b549c3f9
Author: Andrew Cagney <[email protected]>
Date:   Thu Dec 10 14:54:31 2015 -0500

    support .lz (lzip) compression

diff --git a/tools/automake.inc b/tools/automake.inc
index baa2446..7b6ba93 100644
--- a/tools/automake.inc
+++ b/tools/automake.inc
@@ -94,9 +94,11 @@ ifeq ($(AUTOMAKE_y)$(AUTOMAKE_n)$(AUTOMAKE_),)
       PKG := $(PKG:.tar.gz=)
       PKG := $(PKG:.tar.bz2=)
       PKG := $(PKG:.tar.xz=)
+      PKG := $(PKG:.tar.lz=)
       PKG := $(PKG:.tgz=)
       PKG := $(PKG:.tbz2=)
       PKG := $(PKG:.txz=)
+      PKG := $(PKG:.tlz=)
       PKG := $(PKG:.zip=)
       PKG := $(PKG:.git=)
     endif
@@ -208,6 +210,7 @@ build/$(1)-extracted: downloads/$($(1)_DOWNLOADNAME)
 	*zip) rm -rf build/$(1); mkdir -p build/$(1); pkg=`pwd`/$$<; (cd build/$(1); unzip $$$$pkg);; \
 	*bz2) bunzip2 < $$< | (cd build; tar xf -);; \
 	*xz) unxz < $$< | (cd build; tar xf -);; \
+	*lz) lzip -d < $$< | (cd build; tar xf -);; \
 	*) gunzip < $$< | (cd build; tar xf -);; \
 	esac || exit 1
 	$(AT)touch $$@