Commit 12bc6ed4 authored by Rafaël Carré's avatar Rafaël Carré

contrib/tools: use BSD fetch if curl/wget are absent

parent 4c25c7e1
...@@ -184,6 +184,11 @@ download = rm -f $@.tmp && \ ...@@ -184,6 +184,11 @@ download = rm -f $@.tmp && \
wget --passive -c -p -O $@.tmp "$(1)" && \ wget --passive -c -p -O $@.tmp "$(1)" && \
touch $@.tmp && \ touch $@.tmp && \
mv $@.tmp $@ mv $@.tmp $@
else ifeq ($(which fetch >/dev/null 2>&1 || echo FAIL),)
download = rm -f $@.tmp && \
fetch -p -o $@.tmp "$(1)" && \
touch $@.tmp && \
mv $@.tmp $@
else else
download = $(error Neither curl nor wget found!) download = $(error Neither curl nor wget found!)
endif endif
......
...@@ -18,6 +18,11 @@ download = rm -f $@.tmp && \ ...@@ -18,6 +18,11 @@ download = rm -f $@.tmp && \
wget --passive -c -p -O $@.tmp "$(1)" && \ wget --passive -c -p -O $@.tmp "$(1)" && \
touch $@.tmp && \ touch $@.tmp && \
mv $@.tmp $@ mv $@.tmp $@
else ifeq ($(which fetch >/dev/null 2>&1 || echo FAIL),)
download = rm -f $@.tmp && \
fetch -p -o $@.tmp "$(1)" && \
touch $@.tmp && \
mv $@.tmp $@
else else
download = $(error Neither curl nor wget found!) download = $(error Neither curl nor wget found!)
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment