vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Fri Sep 30 09:42:53 2011 +0300| [fd1218a32bd1d9261b4c9fc2eb25643f66a7f638] | committer: Rémi Denis-Courmont
contrib: check that dependencies are actually checksummed This should force a build failure when the checksum file is not in sync with the list of required sources. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fd1218a32bd1d9261b4c9fc2eb25643f66a7f638 --- contrib/src/main.mak | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/contrib/src/main.mak b/contrib/src/main.mak index 8c83173..a8f7c16 100644 --- a/contrib/src/main.mak +++ b/contrib/src/main.mak @@ -182,8 +182,12 @@ download_git = \ (cd $(dir $@) && \ tar cvJ $(notdir $(@:.tar.xz=))) > $@ && \ rm -Rf $(@:.tar.xz=) -checksum = (cd $(TARBALLS) && $(1) --check /dev/stdin) < \ - $(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS +checksum = \ + $(foreach f,$(filter $(TARBALLS)/%,$^), \ + grep -- " $(f:$(TARBALLS)/%=%)$$" \ + "$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS" &&) \ + (cd $(TARBALLS) && $(1) --check /dev/stdin) < \ + "$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS" CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512) UNPACK = $(RM) -R $@ \ $(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzf $(f)) \ _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
