Download rebar from github
This commit is contained in:
6
Makefile
6
Makefile
@@ -3,10 +3,8 @@ REBAR=$(shell which rebar || echo ./rebar)
|
||||
all: compile
|
||||
|
||||
./rebar:
|
||||
erl -noshell -s inets start \
|
||||
-eval 'httpc:request(get, {\
|
||||
"http://hg.basho.com/rebar/downloads/rebar", []\
|
||||
}, [], [{stream, "./rebar"}])' \
|
||||
erl -noshell -s inets start -s ssl start \
|
||||
-eval 'httpc:request(get, {"https://github.com/downloads/basho/rebar/rebar", []}, [], [{stream, "./rebar"}])' \
|
||||
-s init stop
|
||||
chmod +x ./rebar
|
||||
|
||||
|
||||
Reference in New Issue
Block a user