From patchwork Mon Oct 15 09:46:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Stezenbach X-Patchwork-Id: 191498 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]) by ozlabs.org (Postfix) with SMTP id 4BC962C00A3 for ; Mon, 15 Oct 2012 20:46:30 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sourceware.org; s=default; x=1350899191; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help: Sender:Delivered-To; bh=zhfc0EqTQbmMMdXtcrPi+VXdVOo=; b=n9eZxIpz WIwDiwvN1lpuZrQtA96/MVRxFcVQTkPIGW02O1KuU9haNzNpk+RoHeStibhwaxbE PlToqubC1fxRpSXgFU73nCJYSd/Xoqa7LhLEoDZ5U8N9mMoVElJIVXQ352J3z70w V0LY+wQbvUtOyUbYKv27GfH9BKbOEhxrz2g= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=sourceware.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-Spam-21-Score:X-Spam-21-Report:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Subscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=GpGu3b99WO9+FFt/CjwZxexSp8TI64pdXcs164U/5atNpOZ7DAD34qfjFIIxcI zUg51Rl6NWJtTCa9HoRBKWEhKqGx5WXYBVbJnhCnC2gWxNatPycsULIBslpriaxI PpeG1QUsBvpgnmERTXj5CR22LEzP5bjcsD03k9ikgmx1w=; Received: (qmail 13492 invoked by alias); 15 Oct 2012 09:46:24 -0000 Received: (qmail 13479 invoked by uid 22791); 15 Oct 2012 09:46:23 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bar.sig21.net (HELO bar.sig21.net) (80.81.252.164) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 15 Oct 2012 09:46:19 +0000 Received: from p5099b351.dip0.t-ipconnect.de ([80.153.179.81] helo=zzz.local) by bar.sig21.net with esmtpsa (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.72) (envelope-from ) id 1TNhFX-0008AV-U7 for crossgcc@sourceware.org; Mon, 15 Oct 2012 11:46:17 +0200 Received: from js by zzz.local with local (Exim 4.80) (envelope-from ) id 1TNhFX-0004rx-BR for crossgcc@sourceware.org; Mon, 15 Oct 2012 11:46:15 +0200 Date: Mon, 15 Oct 2012 11:46:15 +0200 From: Johannes Stezenbach To: crossgcc@sourceware.org Subject: [PATCH] move backtrace marker to CT_WORK_DIR Message-ID: <20121015094615.GA18673@sig21.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-21-Score: -2.9 (--) X-Spam-21-Report: No, score=-2.9 required=8.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9 autolearn=ham X-IsSubscribed: yes Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Avoid error when commands in scripts/crosstool-NG.sh fail before CT_BUILD_DIR is set. Signed-off-by: Johannes Stezenbach --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 43ace4bb005e scripts/functions --- a/scripts/functions Wed Sep 26 16:37:31 2012 +0200 +++ b/scripts/functions Mon Oct 15 11:37:22 2012 +0200 @@ -11,8 +11,8 @@ # To avoid printing the backtace for each sub-shell # up to the top-level, just remember we've dumped it - if [ ! -f "${CT_BUILD_DIR}/backtrace" ]; then - touch "${CT_BUILD_DIR}/backtrace" + if [ ! -f "${CT_WORK_DIR}/backtrace" ]; then + touch "${CT_WORK_DIR}/backtrace" # Print steps backtrace step_depth=${CT_STEP_COUNT} @@ -50,7 +50,7 @@ CT_DoLog ERROR "" CT_DoEnd ERROR - rm -f "${CT_BUILD_DIR}/backtrace" + rm -f "${CT_WORK_DIR}/backtrace" fi exit $ret }