mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-binutils.git
synced 2025-04-16 07:57:05 +02:00
use GNU FTP mirror URL for faster download speed
This commit is contained in:
parent
445a595288
commit
3f6e1c4673
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ source util.sh
|
||||||
|
|
||||||
VERSION=$1
|
VERSION=$1
|
||||||
PREFIX="$2"
|
PREFIX="$2"
|
||||||
URL="https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.xz"
|
URL="https://ftpmirror.gnu.org/gnu/binutils/binutils-$VERSION.tar.xz"
|
||||||
ARCHIVE=$(basename "$URL")
|
ARCHIVE=$(basename "$URL")
|
||||||
|
|
||||||
# Final location of ld in the sysroot
|
# Final location of ld in the sysroot
|
||||||
|
@ -85,7 +85,7 @@ if [[ -f "$ARCHIVE" ]]; then
|
||||||
else
|
else
|
||||||
echo "$TAG Downloading $URL..."
|
echo "$TAG Downloading $URL..."
|
||||||
if command -v curl >/dev/null 2>&1; then
|
if command -v curl >/dev/null 2>&1; then
|
||||||
curl "$URL" -o "$ARCHIVE"
|
curl "$URL" -L -o "$ARCHIVE"
|
||||||
elif command -v wget >/dev/null 2>&1; then
|
elif command -v wget >/dev/null 2>&1; then
|
||||||
wget -q --show-progress "$URL" -O "$ARCHIVE"
|
wget -q --show-progress "$URL" -O "$ARCHIVE"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue