aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorAnton Yabchinskiy <[email protected]>2014-08-27 13:38:52 +0400
committerAnton Yabchinskiy <[email protected]>2014-08-27 13:38:52 +0400
commitc7a8f0920bf0b64d91e1a521afad27e94e94b10e (patch)
treec203a67ed17bd40e2a0adf9e8afef734c2f9a37f /core/deps.mk
parent39670a51834e74d5eb8b91c5e9cc0e28810e5831 (diff)
downloaderlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.tar.gz
erlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.tar.bz2
erlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.zip
Add support for hg fetching method
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index cfb432d..c36083c 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -46,6 +46,9 @@ define dep_fetch
if [ "$$$$VS" = "git" ]; then \
git clone -n -- $$$$REPO $(DEPS_DIR)/$(1); \
cd $(DEPS_DIR)/$(1) && git checkout -q $$$$COMMIT; \
+ elif [ "$$$$VS" = "hg" ]; then \
+ hg clone -U $$$$REPO $(DEPS_DIR)/$(1); \
+ cd $(DEPS_DIR)/$(1) && hg update -q $$$$COMMIT; \
else \
echo "Unknown or invalid dependency: $(1). Please consult the erlang.mk README for instructions." >&2; \
exit 78; \