[vlc-commits] Contribs: fix dual-download with wget
Jean-Baptiste Kempf
git at videolan.org
Mon Jun 20 14:23:24 CEST 2016
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jun 20 14:22:28 2016 +0200| [61ba4c1571ee1d1ef77c0b0e492d93bc94b7ee47] | committer: Jean-Baptiste Kempf
Contribs: fix dual-download with wget
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=61ba4c1571ee1d1ef77c0b0e492d93bc94b7ee47
---
contrib/src/main.mak | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 5a73375..9f27ca6 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -233,15 +233,15 @@ SVN ?= $(error subversion client (svn) not found!)
ifeq ($(shell curl --version >/dev/null 2>&1 || echo FAIL),)
download = curl -f -L -- "$(1)" > "$@"
else ifeq ($(shell wget --version >/dev/null 2>&1 || echo FAIL),)
-download = rm -f $@.tmp && \
+download = (rm -f $@.tmp && \
wget --passive -c -p -O $@.tmp "$(1)" && \
touch $@.tmp && \
- mv $@.tmp $@
+ mv $@.tmp $@ )
else ifeq ($(which fetch >/dev/null 2>&1 || echo FAIL),)
-download = rm -f $@.tmp && \
+download = (rm -f $@.tmp && \
fetch -p -o $@.tmp "$(1)" && \
touch $@.tmp && \
- mv $@.tmp $@
+ mv $@.tmp $@)
else
download = $(error Neither curl nor wget found!)
endif
More information about the vlc-commits
mailing list