Merge branch 'pin_hashes' of https://github.com/teisenbe/toolchains
diff --git a/doit b/doit
index 2cf5119..8575a47 100755
--- a/doit
+++ b/doit
@@ -5,7 +5,7 @@
 PARALLEL=
 FETCH=0
 QUIET=0
-GNU_FTP=ftp://ftp.gnu.org/gnu
+GNU_MIRROR=https://mirrors.kernel.org/gnu
 ARCHIVES=archives
 PATCHES=./patches/
 # Get absolute path, will spawn a subshell then exit so our pwd is retained
@@ -148,29 +148,29 @@
 . toolvers
 
 if [ "$FETCH" = "1" ]; then
-    if [ ! -f binutils-$BINVER.tar.bz2 ]; then
+    if [ ! -f $ARCHIVES/binutils-$BINVER.tar.bz2 ]; then
        echo fetching binutils-$BINVER
-       log wget -P $ARCHIVES -N $GNU_FTP/binutils/binutils-$BINVER.tar.bz2
+       log wget -P $ARCHIVES -N $GNU_MIRROR/binutils/binutils-$BINVER.tar.bz2
     fi
-    if [ ! -f gcc-$GCCVER.tar.bz2 ]; then
+    if [ ! -f $ARCHIVES/gcc-$GCCVER.tar.bz2 ]; then
         echo fetching gcc-$GCCVER
-        log wget -P $ARCHIVES -N $GNU_FTP/gcc/gcc-$GCCVER/gcc-$GCCVER.tar.bz2
+        log wget -P $ARCHIVES -N $GNU_MIRROR/gcc/gcc-$GCCVER/gcc-$GCCVER.tar.bz2
     fi
-    if [ ! -f gdb-$GDBVER.tar.xz ]; then
+    if [ ! -f $ARCHIVES/gdb-$GDBVER.tar.xz ]; then
         echo fetching gdb-$GDBVER
-        log wget -P $ARCHIVES -N $GNU_FTP/gdb/gdb-$GDBVER.tar.xz
+        log wget -P $ARCHIVES -N $GNU_MIRROR/gdb/gdb-$GDBVER.tar.xz
     fi
-    if [ ! -f mpfr-$MPFRVER.tar.bz2 ]; then
+    if [ ! -f $ARCHIVES/mpfr-$MPFRVER.tar.bz2 ]; then
         echo fetching mpfr-$MPFRVER
-        log wget -P $ARCHIVES -N $GNU_FTP/mpfr/mpfr-$MPFRVER.tar.bz2
+        log wget -P $ARCHIVES -N $GNU_MIRROR/mpfr/mpfr-$MPFRVER.tar.bz2
     fi
-    if [ ! -f mpc-$MPCVER.tar.gz ]; then
+    if [ ! -f $ARCHIVES/mpc-$MPCVER.tar.gz ]; then
         echo fetching mpc-$MPCVER
-        log wget -P $ARCHIVES -N $GNU_FTP/mpc/mpc-$MPCVER.tar.gz
+        log wget -P $ARCHIVES -N $GNU_MIRROR/mpc/mpc-$MPCVER.tar.gz
     fi
-    if [ ! -f gmp-$GMPVER.tar.bz2 ]; then
+    if [ ! -f $ARCHIVES/gmp-$GMPVER.tar.bz2 ]; then
         echo fetching gmp-$GMPVER
-        log wget -P $ARCHIVES -N $GNU_FTP/gmp/gmp-$GMPVER.tar.bz2
+        log wget -P $ARCHIVES -N $GNU_MIRROR/gmp/gmp-$GMPVER.tar.bz2
     fi
 fi