[vlc-devel] [PATCHv4 03/12] contrib: specify the .sum- prefix in the checksum function

Thomas Guillem thomas at gllm.fr
Tue Sep 8 14:13:32 CEST 2020


This will allow to use the checksum function for other targets.
---
 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..aa273ef89ca 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