MXE_GET_GITHUB_SHA: simplify regex and make the hash longer

This commit is contained in:
Timothy Gu 2015-03-09 18:15:01 -07:00
parent abd129934d
commit 1bd25fc0ec
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ MAKE_SHARED_FROM_STATIC = \
define MXE_GET_GITHUB_SHA
$(WGET) -q -O- 'https://api.github.com/repos/$(strip $(1))/git/refs/heads/$(strip $(2))' | \
$(SED) -n 's#.*"sha": "\([^<]\{7\}\)[^<]\{3\}.*#\1#p' | \
$(SED) -n 's#.*"sha": "\([^"]\{10\}\).*#\1#p' | \
head -1
endef