Download rebar from github

This commit is contained in:
Carlos Martín Nieto
2012-08-13 00:05:42 +02:00
parent d46354bacb
commit 8db2e4923b

View File

@@ -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