diff options
author | Thomas De Schampheleire <patrickdepinguin+buildroot@gmail.com> | 2013-08-02 11:05:14 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2013-09-06 23:30:27 +0200 |
commit | f8d89f051032a8835bdb77edec518e73170006c1 (patch) | |
tree | ec2976891f2a09075b7f827db208947bddb0d354 /package/lsof | |
parent | 741cbccb746b4bda41c5a51bf2d9d8977c902439 (diff) | |
download | buildroot-f8d89f051032a8835bdb77edec518e73170006c1.tar.gz buildroot-f8d89f051032a8835bdb77edec518e73170006c1.zip |
infra: introduce suitable-extractor helper function
In order to simplify determining the right extractor tool for a given
file type, this patch introduces a make function 'suitable-extractor'.
Its usage is $(call suitable-extractor,filename), and it returns the
path to the suitable extractor.
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/lsof')
-rw-r--r-- | package/lsof/lsof.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/lsof/lsof.mk b/package/lsof/lsof.mk index f1c9474c61..693bb9183b 100644 --- a/package/lsof/lsof.mk +++ b/package/lsof/lsof.mk @@ -41,7 +41,7 @@ endif # The .tar.bz2 contains another .tar, which contains the source code. define LSOF_EXTRACT_CMDS - $(INFLATE.bz2) $(DL_DIR)/$(LSOF_SOURCE) | \ + $(call suitable-extractor,$(LSOF_SOURCE)) $(DL_DIR)/$(LSOF_SOURCE) | \ $(TAR) -O $(TAR_OPTIONS) - lsof_$(LSOF_VERSION)/lsof_$(LSOF_VERSION)_src.tar | \ $(TAR) $(TAR_STRIP_COMPONENTS)=1 -C $(LSOF_DIR) $(TAR_OPTIONS) - endef |