Skip to content

Commit

Permalink
Toolchain: Use curl instead of wget (SerenityOS#2574)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
ericonr committed Jun 18, 2020
1 parent 73bcc01 commit fef9ad5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion Documentation/BuildInstructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Toolchain/BuildIt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Toolchain/BuildIt_x86_64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit fef9ad5

Please sign in to comment.