[vlc-devel] [PATCH] UNPACK_DIR should only strip .tar as 2nd suffix

Uwe L. Korn uwelk at xhochy.com
Mon Apr 28 14:22:08 CEST 2014


From: "Uwe L. Korn" <uwelk at xhochy.com>

Fixes the problem where UNPACK_DIR returned rtmpdump-2 instead
of rtmpdumo-2.3 for rtmpdump-2.3. Only .tar.* archives have two
filetype suffixes, tgz, zip,.. have only one and the second "."
in the filename belongs to the version number which should not be
stripped.
---
 contrib/src/main.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 45ba470..ae01fea 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -301,7 +301,7 @@ UNPACK = $(RM) -R $@ \
 	$(foreach f,$(filter %.tar.bz2,$^), && tar xvjf $(f)) \
 	$(foreach f,$(filter %.tar.xz,$^), && tar xvJf $(f)) \
 	$(foreach f,$(filter %.zip,$^), && unzip $(f))
-UNPACK_DIR = $(basename $(basename $(notdir $<)))
+UNPACK_DIR = $(patsubst %.tar,%,$(basename $(notdir $<)))
 APPLY = (cd $(UNPACK_DIR) && patch -fp1) <
 pkg_static = (cd $(UNPACK_DIR) && ../../../contrib/src/pkg-static.sh $(1))
 MOVE = mv $(UNPACK_DIR) $@ && touch $@
-- 
1.8.3.2




More information about the vlc-devel mailing list