Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id C78D2E006C7; Mon, 7 Nov 2016 05:30:55 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.66 listed in dnsbl.sorbs.net] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.213.66 listed in list.dnswl.org] Received: from mail-vk0-f66.google.com (mail-vk0-f66.google.com [209.85.213.66]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A4D19E00571 for ; Mon, 7 Nov 2016 05:30:51 -0800 (PST) Received: by mail-vk0-f66.google.com with SMTP id p9so6067315vkd.1 for ; Mon, 07 Nov 2016 05:30:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :organization; bh=spD1+Mq/YbD0HecCwx4fCEI7gPQMMj7mdNYj2S47dNU=; b=j9vg102E8dHeEpuIsnMt2sSNn2U+c9vYmy+UYehd96mpeUxEMNKw29yZtMeSFvYm9x r7jIukUyaqrDo9m5LXLSlJoE2uptvB/1n4W26L8i/zaXhdbeMT2lLlZrq26/aS3he+q3 b7ElYrgM7z1/7UOB3YWho+zlZiQS7Qvf3E43LONLc0UR73kWm9djnXkY7dQOxtcWj78x euvFBlb2a0NMBBaWQLRJE4LMfz+uxrqcLsMHqe+iusr1A5Sm/lr+/6N/htHrJnxN/ARt aIgAsoU+7OWpaGz8lo4ryioU5KVLIwiwyKwWp8lEdkahIZDcy2shVQjjlB65mxMfaclU Eiig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=spD1+Mq/YbD0HecCwx4fCEI7gPQMMj7mdNYj2S47dNU=; b=Y6AfPyZysl/3iGEKRS19NsAWMF/YoiGYZcWvkLFI1ijJp+BI6lUJUf5ByRNHwcnt4e AhEjlyhSIX2IofXshEX/+c3rNOMSnxQG/b+8XrsuFF+QENiLTpqQGiqCA9APPdPIlLZU 3/pSfFCZ8t3YQSKkrm4MIjjOY5DxpEPdn3OwlFlIewQEEt9ainJmAgPCT832G4D5W2PB hh49RBLic87Fo6w9I/s6dWUBHQRjgfykSLJCDo9LK3gM1Z1h7y2sEcIn1+9mIRKw3BKv 6OtfUXKH1/jdElI+5/4Vh89WrNM+MBGSmedXCQGEZrrs1Z/otBoR+2aq0Cy3EFOTZXJ6 r/Nw== X-Gm-Message-State: ABUngvfm4oyd5owqJndafWTwtsSI29QbKS70nvKLzu0jGwgnfDNFrFmDBNiuJe1dq7QZ9Q== X-Received: by 10.31.33.75 with SMTP id h72mr581931vkh.0.1478525450760; Mon, 07 Nov 2016 05:30:50 -0800 (PST) Received: from monster.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id q7sm6145705vke.20.2016.11.07.05.30.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 05:30:49 -0800 (PST) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Mon, 7 Nov 2016 11:29:59 -0200 Message-Id: <1478525399-3645-2-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478525399-3645-1-git-send-email-fabio.berton@ossystems.com.br> References: <1478525399-3645-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [base][PATCH v2 2/2] setup-environment: Move error log from top to bottom X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Nov 2016 13:30:55 -0000 If setup-environment won't be running like expect show error message at bottom of log to be more visible. Signed-off-by: Fabio Berton --- setup-environment | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup-environment b/setup-environment index 797a6aa..a193abf 100755 --- a/setup-environment +++ b/setup-environment @@ -97,8 +97,9 @@ fi LIST_MACHINES=`ls -1 $CWD/sources/*/conf/machine` VALID_MACHINE=`echo -e "$LIST_MACHINES" | grep ${MACHINE}.conf$ | wc -l` if [ "x$MACHINE" = "x" ] || [ "$VALID_MACHINE" = "0" ]; then + usage echo -e "\nThe \$MACHINE you have specified ($MACHINE) is not supported by this build setup" - usage && clean_up + clean_up return 1 else if [ ! -e $1/conf/local.conf.sample ]; then @@ -117,8 +118,9 @@ fi LIST_DISTROS=`ls -1 $CWD/sources/meta-freescale-distro/conf/distro` VALID_DISTRO=`echo -e "$LIST_DISTROS" | grep ${DISTRO}.conf$ | wc -l` if [ "x$DISTRO" = "x" ] || [ "$VALID_DISTRO" = "0" ]; then + usage echo -e "The \$DISTRO you have specified ($DISTRO) is not supported by this build setup\n" - usage && clean_up + clean_up return 1 else if [ ! -e $1/conf/local.conf.sample ]; then -- 2.1.4