Commit fd1218a3 authored by Rémi Denis-Courmont's avatar 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.
parent 339d3029
...@@ -182,8 +182,12 @@ download_git = \ ...@@ -182,8 +182,12 @@ download_git = \
(cd $(dir $@) && \ (cd $(dir $@) && \
tar cvJ $(notdir $(@:.tar.xz=))) > $@ && \ tar cvJ $(notdir $(@:.tar.xz=))) > $@ && \
rm -Rf $(@:.tar.xz=) rm -Rf $(@:.tar.xz=)
checksum = (cd $(TARBALLS) && $(1) --check /dev/stdin) < \ checksum = \
$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS $(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) CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512)
UNPACK = $(RM) -R $@ \ UNPACK = $(RM) -R $@ \
$(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzf $(f)) \ $(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzf $(f)) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment