[vlc-commits] contrib: check the git hash regardless of the path used for the hash

Steve Lhomme git at videolan.org
Thu Jun 18 18:31:44 CEST 2020


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Mar  5 10:23:37 2019 +0100| [44eb6444f42218c683a02d1f983d6757a8c7d357] | committer: Steve Lhomme

contrib: check the git hash regardless of the path used for the hash

(cherry picked from commit 96b58ec2e5615bf642107903f85e2593fba49713)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=44eb6444f42218c683a02d1f983d6757a8c7d357
---

 contrib/src/main.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index ddcc496a0c..7c223f663c 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -337,7 +337,7 @@ download_git = \
 	rm -f "$(@:.xz=)" && \
 	mv -f -- "$@.tmp" "$@"
 check_githash = \
-	h=`sed -n -e "s,^\([0-9a-fA-F]\{40\}\) $<,\1,p" \
+	h=`sed -e "s,^\([0-9a-fA-F]\{40\}\) .*/$(notdir $<),\1,g" \
 		< "$(<:.tar.xz=.githash)"` && \
 	test "$$h" = "$1"
 



More information about the vlc-commits mailing list