mirror of
https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc.git
synced 2025-05-29 06:55:11 +02:00
Merge pull request 'use GNU FTP mirror URL for faster download speed' (#2) from CalcLoverHK/sh-elf-gcc:ftpmirror into master
Reviewed-on: https://git.planet-casio.com/Lephenixnoir/sh-elf-gcc/pulls/2
This commit is contained in:
commit
fdbc1be7a8
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ source util.sh
|
|||
|
||||
VERSION=$1
|
||||
PREFIX="$2"
|
||||
URL="https://ftp.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.xz"
|
||||
URL="https://ftpmirror.gnu.org/gnu/gcc/gcc-$VERSION/gcc-$VERSION.tar.xz"
|
||||
ARCHIVE=$(basename "$URL")
|
||||
|
||||
# Final location of gcc in the sysroot
|
||||
|
@ -77,7 +77,7 @@ if [[ -f "$ARCHIVE" ]]; then
|
|||
else
|
||||
echo "$TAG Downloading $URL..."
|
||||
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
|
||||
wget -q --show-progress $URL -O $ARCHIVE
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue