aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Schwarz <zeranoe@gmail.com>2018-04-07 22:18:29 -0400
committerKyle Schwarz <zeranoe@gmail.com>2018-04-07 22:18:29 -0400
commit7843f11eb4b222aad131600b1c1161873cd8fd6e (patch)
tree56b9c64122b3e67f0578304063d693762a9ad76b
parent15aa024d96392a10b8a8d0349b800678c30a3ab3 (diff)
Switch from wget to curl
-rwxr-xr-xmingw-w64-build6
1 files changed, 3 insertions, 3 deletions
diff --git a/mingw-w64-build b/mingw-w64-build
index 12438f1..d7fad6d 100755
--- a/mingw-w64-build
+++ b/mingw-w64-build
@@ -97,7 +97,7 @@ download_sources()
local archive="${url##*/}"
local c
echo "downloading $archive" >&3
- wget -nv "$url" || error_exit
+ curl -O "$url" || error_exit
echo "extracting $archive" >&3
case "${archive##*.}" in
gz) c=z ;;
@@ -224,7 +224,7 @@ for arch in $@; do
done
progs=(
- "wget"
+ "curl"
"gzip"
"bzip2"
"xz"
@@ -247,7 +247,7 @@ if [[ -n "$missing_progs" ]]; then
fi
cpus=$(grep -c processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu | tr -d "\n" 2>/dev/null)
-build=$(wget -qO - "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" | sh)
+build=$(curl -s "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" | sh)
wd="$PWD"
src="$wd/src"
bld="$wd/bld"