[vlc-commits] contrib: check that dependencies are actually checksummed
Rémi Denis-Courmont
git at videolan.org
Sat Oct 1 09:52:58 CEST 2011
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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)) \
More information about the vlc-commits
mailing list