From 612a6ffe0ea3b27a5f8180a8d0844593a791568c Mon Sep 17 00:00:00 2001 From: Eric Gallager Date: Wed, 3 Aug 2016 16:11:50 +0000 Subject: [PATCH] download_prerequisites: Explicitly remove existing symlinks before trying to create new ones. 2016-08-03 Eric Gallager * download_prerequisites: Explicitly remove existing symlinks before trying to create new ones. From-SVN: r239082 --- contrib/ChangeLog | 5 +++++ contrib/download_prerequisites | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 10f13f34824..927d72c911c 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2016-08-03 Eric Gallager + + * download_prerequisites: Explicitly remove existing symlinks + before trying to create new ones. + 2016-07-28 Martin Liska * mark_spam.py: New file. diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index 917ee23f3d9..2c963f28e30 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -36,14 +36,17 @@ MPC=mpc-1.0.3 wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$MPFR.tar.bz2 || exit 1 tar xjf $MPFR.tar.bz2 || exit 1 +if test -L mpfr; then rm -f mpfr; fi ln -sf $MPFR mpfr || exit 1 wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$GMP.tar.bz2 || exit 1 tar xjf $GMP.tar.bz2 || exit 1 +if test -L gmp; then rm -f gmp; fi ln -sf $GMP gmp || exit 1 wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$MPC.tar.gz || exit 1 tar xzf $MPC.tar.gz || exit 1 +if test -L mpc; then rm -f mpc; fi ln -sf $MPC mpc || exit 1 # Necessary to build GCC with the Graphite loop optimizations. @@ -52,5 +55,6 @@ if [ "$GRAPHITE_LOOP_OPT" = "yes" ] ; then wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$ISL.tar.bz2 || exit 1 tar xjf $ISL.tar.bz2 || exit 1 + if test -L isl; then rm -f isl; fi ln -sf $ISL isl || exit 1 fi -- 2.30.2