[vlc-devel] [PATCH 2/8] contrib: specify the .sum- prefix in the checksum function

Thomas Guillem thomas at gllm.fr
Tue Aug 25 16:45:03 CEST 2020


This will be used for .cargo-vendor-*-sum
---
 contrib/src/main.mak | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 0266e2a1199..d0df860a954 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -363,10 +363,10 @@ check_githash = \
 checksum = \
 	$(foreach f,$(filter $(TARBALLS)/%,$^), \
 		grep -- " $(f:$(TARBALLS)/%=%)$$" \
-			"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS" &&) \
+			"$(SRC)/$(patsubst $(3)-%,%,$@)/$(2)SUMS" &&) \
 	(cd $(TARBALLS) && $(1) /dev/stdin) < \
-		"$(SRC)/$(patsubst .sum-%,%,$@)/$(2)SUMS"
-CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512)
+		"$(SRC)/$(patsubst $(3)-%,%,$@)/$(2)SUMS"
+CHECK_SHA512 = $(call checksum,$(SHA512SUM),SHA512,.sum)
 UNPACK = $(RM) -R $@ \
 	$(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzfo $(f)) \
 	$(foreach f,$(filter %.tar.bz2,$^), && tar xvjfo $(f)) \
-- 
2.28.0



More information about the vlc-devel mailing list