diff options
author | Anton Yabchinskiy <[email protected]> | 2014-08-27 13:38:52 +0400 |
---|---|---|
committer | Anton Yabchinskiy <[email protected]> | 2014-08-27 13:38:52 +0400 |
commit | c7a8f0920bf0b64d91e1a521afad27e94e94b10e (patch) | |
tree | c203a67ed17bd40e2a0adf9e8afef734c2f9a37f /erlang.mk | |
parent | 39670a51834e74d5eb8b91c5e9cc0e28810e5831 (diff) | |
download | erlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.tar.gz erlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.tar.bz2 erlang.mk-c7a8f0920bf0b64d91e1a521afad27e94e94b10e.zip |
Add support for hg fetching method
Diffstat (limited to 'erlang.mk')
-rw-r--r-- | erlang.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -114,6 +114,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; \ |