summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authortrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-11 06:09:36 +0000
committertrippels <trippels@138bc75d-0d04-0410-961f-82ee72b054a4>2015-09-11 06:09:36 +0000
commitf8c43e60336aaffe4c8d89d7a3717aa5f59f5a72 (patch)
tree1ee55e05f090701d0729fbef95a349da1f9d8080 /contrib
parent2a7af44e31dfe477df6c760a3026ff4afe91fc25 (diff)
downloadgcc-f8c43e60336aaffe4c8d89d7a3717aa5f59f5a72.tar.gz
Make sure that contrib/download_prerequisites is run from correct place
* download_prerequisites: Make sure that script is run from top level source directory. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227674 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog5
-rwxr-xr-xcontrib/download_prerequisites5
2 files changed, 10 insertions, 0 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index 4493c19dfd1..cfd3abbf3f2 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,8 @@
+2015-09-11 Markus Trippelsdorf <markus@trippelsdorf.de>
+
+ * download_prerequisites: Make sure that script is run from
+ top level source directory.
+
2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* update-copyright.py (GCCCmdLine): Add libvtv.
diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
index de0e7c41847..69403301b81 100755
--- a/contrib/download_prerequisites
+++ b/contrib/download_prerequisites
@@ -24,6 +24,11 @@
# be downloaded.
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