download_prerequisites: Explicitly remove existing symlinks before trying to create new ones.

2016-08-03  Eric Gallager  <egall@gwmail.gwu.edu>

	* download_prerequisites: Explicitly remove existing symlinks
	before trying to create new ones.

From-SVN: r239082
This commit is contained in:
Eric Gallager 2016-08-03 16:11:50 +00:00 committed by Jeff Law
parent f8571e5150
commit 612a6ffe0e
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2016-08-03 Eric Gallager <egall@gwmail.gwu.edu>
* download_prerequisites: Explicitly remove existing symlinks
before trying to create new ones.
2016-07-28 Martin Liska <mliska@suse.cz>
* mark_spam.py: New file.

View File

@ -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