From patchwork Thu Sep 10 07:33:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Trippelsdorf X-Patchwork-Id: 516150 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id ED12114012C for ; Thu, 10 Sep 2015 17:33:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=EENEcjr5; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=Stx6yYK1laLeOTvI4jS2cy6MxqLqRuNyPSAbnLt2RfiF79PgyVhFI M7O6NFknG7BqjKiPAvrVzNBdZSyTyscRrMD88ocrAlLaXOuKuyGtIfWyyDdg7nYt M2t6oIKPy0L5F3cp16HCi1wVaXsrrNoEKfyfDV8MsWOcl5tGju8rZ4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=idfFEI382NdUotdQne/gIvSdO4w=; b=EENEcjr5Ahsz+y6zPd8X pvNKeWjANsEqs2oNCrUkxUKk4BYLCg1X82JhMg7OoLJd/s0PpLpxS9gH896usxNV S7Xiq4pl4gCY5hk+N3RV+ZA5csq6s8DaEZ8gndmEtAPNg6dLK4Hch8PPU9t5DRaw qOhuSFP99oefm0NLCCoAbkM= Received: (qmail 32910 invoked by alias); 10 Sep 2015 07:33:40 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 32897 invoked by uid 89); 10 Sep 2015 07:33:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.9 required=5.0 tests=AWL, BAYES_50, KAM_MXURI, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS, T_FROM_12LTRDOM autolearn=no version=3.3.2 X-HELO: mail.ud10.udmedia.de Received: from ud10.udmedia.de (HELO mail.ud10.udmedia.de) (194.117.254.50) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 10 Sep 2015 07:33:38 +0000 Received: (qmail 6917 invoked from network); 10 Sep 2015 09:33:35 +0200 Received: from ip5b41f88a.dynamic.kabel-deutschland.de (HELO x4) (ud10?360p3@91.65.248.138) by mail.ud10.udmedia.de with ESMTPSA (ECDHE-RSA-AES256-SHA encrypted, authenticated); 10 Sep 2015 09:33:35 +0200 Date: Thu, 10 Sep 2015 09:33:34 +0200 From: Markus Trippelsdorf To: gcc-patches@gcc.gnu.org Subject: [PATCH] Make sure that contrib/download_prerequisites is run from correct place Message-ID: <20150910073334.GF432@x4> MIME-Version: 1.0 Content-Disposition: inline A user complained on the gcc-help list that download_prerequisites wasn't working for him, because he ran it from the wrong directory. Tested on x86_64-pc-linux-gnu. OK for trunk and active branches? * download_prerequisites: Make sure that script is run from top level source directory. diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites index de0e7c41847d..95fab9aecfe1 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