summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2015-03-10 01:15:01 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2015-03-10 01:15:01 (GMT)
commit1bd25fc0ec4bcd83afa31262b52861c4cacdead5 (patch)
tree9bed57d08bfcf99ae7c4e615dfa07a7934d67f49 /Makefile
parentabd129934d4b828a5beb9833274d47c1717bd22a (diff)
downloadmxe-1bd25fc0ec4bcd83afa31262b52861c4cacdead5.zip
mxe-1bd25fc0ec4bcd83afa31262b52861c4cacdead5.tar.gz
mxe-1bd25fc0ec4bcd83afa31262b52861c4cacdead5.tar.bz2
MXE_GET_GITHUB_SHA: simplify regex and make the hash longer
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 64f3098..b932cc1 100644
--- a/Makefile
+++ b/Makefile
@@ -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