Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2B0CDE00BC1; Mon, 7 Nov 2016 03:55:01 -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: * -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.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.213.68 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.213.68 listed in list.dnswl.org] Received: from mail-vk0-f68.google.com (mail-vk0-f68.google.com [209.85.213.68]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id BFC8AE009C9 for ; Mon, 7 Nov 2016 03:54:57 -0800 (PST) Received: by mail-vk0-f68.google.com with SMTP id x186so5967169vkd.2 for ; Mon, 07 Nov 2016 03:54:57 -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=pwBOHMX6uLvgFhCWvu9hpGDt/MCpb5YtV6TNoJpsqCs=; b=DSO0a1LmLUd8PaQ4PATY4GHFNJ/6vFfSSN/H8DqQ7XUybwXKeodjMRx8Z44VvHUDHl 45x9SvvGnj88dmFy6GtWQwCzmV6B4a/A0ZPWNeQ5EvvYIX0UGRDw76lMz46PQ4kUP95X 9/JRt31ZEBfGR6Hj12SxIauA9gzas7ZZZZvossE3G5z/vswtRX1fPuQJrqH4akMuiWuq HHTBfZJaHeT0hCrj28wTgC2mCFYS0ciJjdeTrfgFZUlhfDZXhIa+KXQVdGO2vpo6VgIe 4k8uK2U44fs/008g12nYXRxe0ytScG7KjUAmjijTYd3ZLmoT5/622s6r9FK9BNvzhTq3 9o/w== 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=pwBOHMX6uLvgFhCWvu9hpGDt/MCpb5YtV6TNoJpsqCs=; b=RdqWE/VJ2sKaHqifpr3nsNaXoR5PHHdemvsb8yDsRQd0iiCaiAj5NYRexRtfd3pw6W pj1ODn9K19wzui5O1g6/NETeQX7KNjcMKW7XJtWVPUWxIAh1FNu9ecVsNxZ2+ngCf2JA TgxDPbUyyPZ3FRMN5+WKTf9CjVcQvYqdntpe5P+Bkc62V7kx7tkngraLNPXb8YqfUNmb pqsasGH8AKhVnCeRLgxeOkjWv4Hjuy7P4pmaCNNE1tme0E+6MSmOJMKxZBX9xEafsa+b cCWH2TAY/hsLjWY46DoqzijdjXqjv6WTobWzIdyUV+rmsC2n6zDkwj1S0HmER1EOq9Yc 72Og== X-Gm-Message-State: ABUngve9F6ieO04GG/B3qVfuR3wZzIInwRkd00VRhFHbwFWpcS5rqB5yy8VGtE0GA92vPA== X-Received: by 10.31.191.194 with SMTP id p185mr3491504vkf.98.1478519696404; Mon, 07 Nov 2016 03:54:56 -0800 (PST) Received: from monster.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id 140sm6072290vkl.28.2016.11.07.03.54.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 03:54:55 -0800 (PST) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Mon, 7 Nov 2016 09:54:32 -0200 Message-Id: <1478519672-1615-2-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478519672-1615-1-git-send-email-fabio.berton@ossystems.com.br> References: <1478519672-1615-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [base][PATCH 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 11:55:01 -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 a955182..53c324f 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