diff options
author | Tomas Chvatal <tchvatal@suse.cz> | 2012-05-14 18:11:11 +0200 |
---|---|---|
committer | Tomas Chvatal <tchvatal@suse.cz> | 2012-05-14 18:15:55 +0200 |
commit | 904763b1134bdd84a4e64de1e037da5cac192f27 (patch) | |
tree | e807302ae728397b3d1376a62f11bc2ff5d063d7 /solenv/inc | |
parent | cf8b304af3e88e9d8b42793f079124939a616d3b (diff) |
Support unpacking xz files.
Change-Id: If0b7234ede1d9f8c59e5df692b45539a508d8921
Diffstat (limited to 'solenv/inc')
-rw-r--r-- | solenv/inc/tg_ext.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/inc/tg_ext.mk b/solenv/inc/tg_ext.mk index 9a25d7a04949..453a17b58e0e 100644 --- a/solenv/inc/tg_ext.mk +++ b/solenv/inc/tg_ext.mk @@ -113,6 +113,16 @@ $(MISC)/%.unpack : $(TARFILE_LOCATION2)/%.tar.bz2 @$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH) @$(RENAME) $@.$(INPATH) $@ +$(MISC)/%.unpack : $(TARFILE_LOCATION2)/%.tar.xz + @-$(RM) $@ +.IF "$(GUI)"=="UNX" + @noop $(assign UNPACKCMD := sh -c "xz -cd $(TARFILE_LOCATION)/$(TARFILE_MD5)-$(TARFILE_NAME).tar.xz $(TARFILE_FILTER) | $(GNUTAR) --no-same-owner -x$(tar_verbose_switch)f - ") +.ELSE # "$(GUI)"=="UNX" + @noop $(assign UNPACKCMD := xz -cd $(TARFILE_LOCATION)/$(TARFILE_MD5)-$(TARFILE_NAME).tar.xz $(TARFILE_FILTER) | $(GNUTAR) --no-same-owner -x$(tar_verbose_switch)f - ) +.ENDIF # "$(GUI)"=="UNX" + @$(TYPE) $(mktmp $(UNPACKCMD)) > $@.$(INPATH) + @$(RENAME) $@.$(INPATH) $@ + $(MISC)/%.unpack : $(TARFILE_LOCATION2)/%.tar.Z @-$(RM) $@ .IF "$(GUI)"=="UNX" |