From c7a8f0920bf0b64d91e1a521afad27e94e94b10e Mon Sep 17 00:00:00 2001 From: Anton Yabchinskiy Date: Wed, 27 Aug 2014 13:38:52 +0400 Subject: Add support for hg fetching method --- core/deps.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core') 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; \ -- cgit v1.2.3