From: Markus Trippelsdorf Date: Fri, 11 Sep 2015 06:14:32 +0000 (+0000) Subject: Make sure that contrib/download_prerequisites is run from correct place X-Git-Tag: releases/gcc-4.9.4~608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5d28e66bdf86e17c8c894dd740b959549a432ed;p=thirdparty%2Fgcc.git Make sure that contrib/download_prerequisites is run from correct place * download_prerequisites: Make sure that script is run from top level source directory. From-SVN: r227676 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 09aa7020d70f..d220728e8ce5 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,8 @@ +2015-09-11 Markus Trippelsdorf + + * download_prerequisites: Make sure that script is run from + top level source directory. + 2015-06-26 Release Manager * GCC 4.9.3 released. diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index cc27143ea254..98813a02d1d9 100755 --- a/contrib/download_prerequisites +++ b/contrib/download_prerequisites @@ -24,6 +24,11 @@ # ISL Library and CLooG. GRAPHITE_LOOP_OPT=yes +if [ ! -e gcc/BASE-VER ] ; then + echo "You must run this script in the top level GCC source directory." + exit 1 +fi + # Necessary to build GCC. MPFR=mpfr-2.4.2 GMP=gmp-4.3.2