[vlc-commits] contrib: specify the .sum- prefix in the checksum function

Thomas Guillem git at videolan.org
Thu Sep 10 12:43:19 CEST 2020


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Aug 25 14:36:59 2020 +0200| [951c4ebe00e85cd6f67ca3a739bf7e6c341b7e7f] | committer: Thomas Guillem

contrib: specify the .sum- prefix in the checksum function

This will allow to use the checksum function for other targets.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=951c4ebe00e85cd6f67ca3a739bf7e6c341b7e7f
---

 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 0266e2a119..aa273ef89c 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)) \



More information about the vlc-commits mailing list