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

Uwe L. Korn git at videolan.org
Sat May 3 18:49:52 CEST 2014


vlc | branch: master | Uwe L. Korn <uwelk at xhochy.com> | Mon Apr 28 11:22:08 2014 +0000| [57b5d92ba74a7c9fc0e024e57fb299ff43543fbb] | committer: Jean-Baptiste Kempf

UNPACK_DIR should only strip .tar as 2nd suffix

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.

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=57b5d92ba74a7c9fc0e024e57fb299ff43543fbb
---

 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 $@



More information about the vlc-commits mailing list