Toolchain: Use curl instead of wget (#2574)

- For Linux: curl is already listed as a dependency;
- For macOS: curl is pre-installed;
- For OpenBSD and FreeBSD: curl is a dependecy of git.
This commit is contained in:
Érico Nogueira Rolim 2020-06-18 11:31:12 -03:00 committed by GitHub
parent 73bcc01143
commit fef9ad520b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
Notes: sideshowbarker 2024-07-19 05:35:14 +09:00
3 changed files with 4 additions and 5 deletions

View file

@ -36,7 +36,6 @@ brew install coreutils
brew tap discoteq/discoteq
brew install flock
brew install qemu
brew install wget
brew install e2fsprogs
brew install m4
brew install autoconf

View file

@ -117,7 +117,7 @@ pushd "$DIR/Tarballs"
echo "bu md5='$md5'"
if [ ! -e $BINUTILS_PKG ] || [ "$md5" != ${BINUTILS_MD5SUM} ] ; then
rm -f $BINUTILS_PKG
wget "$BINUTILS_BASE_URL/$BINUTILS_PKG"
curl -LO "$BINUTILS_BASE_URL/$BINUTILS_PKG"
else
echo "Skipped downloading binutils"
fi
@ -126,7 +126,7 @@ pushd "$DIR/Tarballs"
echo "gc md5='$md5'"
if [ ! -e $GCC_PKG ] || [ "$md5" != ${GCC_MD5SUM} ] ; then
rm -f $GCC_PKG
wget "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG"
curl -LO "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG"
else
echo "Skipped downloading gcc"
fi

View file

@ -52,7 +52,7 @@ pushd "$DIR/Tarballs"
echo "bu md5='$md5'"
if [ ! -e $BINUTILS_PKG ] || [ "$md5" != ${BINUTILS_MD5SUM} ] ; then
rm -f $BINUTILS_PKG
wget "$BINUTILS_BASE_URL/$BINUTILS_PKG"
curl -LO "$BINUTILS_BASE_URL/$BINUTILS_PKG"
else
echo "Skipped downloading binutils"
fi
@ -61,7 +61,7 @@ pushd "$DIR/Tarballs"
echo "gc md5='$md5'"
if [ ! -e $GCC_PKG ] || [ "$md5" != ${GCC_MD5SUM} ] ; then
rm -f $GCC_PKG
wget "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG"
curl -LO "$GCC_BASE_URL/$GCC_NAME/$GCC_PKG"
else
echo "Skipped downloading gcc"
fi