[vlc-devel] [PATCH 3/7] contrib: check the git hash regardless of the path used for the hash
Steve Lhomme
robux4 at ycbcr.xyz
Tue Mar 5 14:31:03 CET 2019
---
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 445162f4a2..4eb679e390 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -327,7 +327,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"
--
2.17.1
More information about the vlc-devel
mailing list