Message ID | 1431362411-8686-7-git-send-email-zoltan.kiss@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBD34DVH7Y4DRBJNYYOVAKGQEDXWJLCA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B68AF2121F for <linaro@patches.linaro.org>; Mon, 11 May 2015 16:43:18 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf40667812wgi.3 for <linaro@patches.linaro.org>; Mon, 11 May 2015 09:43:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=TRY51OiHh6WQ2vurIJdPdqVszQZuV3SzSaj+B9V3vFU=; b=Ju8fje4h8GkBm7dFQ5+b82DCEc7b5aQmaP2/XNXE7bgNHenQM7RJuECLItdJwhf4JM 2BI+3BSyvlk0Wu86BzktKUNc7/vg5AZpph1I/j2SlSx1P0T6g1SXvwwP0qDVnucQAWy4 9sUvS1/UpwpelqYJFreCo41jM2Q0DqIxRExcDeP++Ev8ZWh+kLr6EsS+9UCrkek5uE4N kCvRZVpVa2JcB1MiXDpo5GHYGKcy0FZW7jqK6kkQJBhG7hn+aQpocVe/Kt0wLWNk3ZUm gwRnPd1zFY0cwGCHfQD2XD41hWpFr8LnhlBVotuhk2dtrWWR//lc1s/N4ZvT3qH/QgRZ /3eQ== X-Gm-Message-State: ALoCoQn7vQJ1aX7Iy0qozpUFDCMg3MiJt2eY6yzRAyxuB2LOhadmgvpChwXEK7g7wuUUd1EF4LWI X-Received: by 10.180.96.6 with SMTP id do6mr8414478wib.4.1431362598023; Mon, 11 May 2015 09:43:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.70 with SMTP id le6ls676445lac.50.gmail; Mon, 11 May 2015 09:43:17 -0700 (PDT) X-Received: by 10.152.5.7 with SMTP id o7mr8613397lao.51.1431362597847; Mon, 11 May 2015 09:43:17 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id h1si8650200lah.56.2015.05.11.09.43.17 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2015 09:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by laat2 with SMTP id t2so97477936laa.1 for <patchwork-forward@linaro.org>; Mon, 11 May 2015 09:43:17 -0700 (PDT) X-Received: by 10.112.163.168 with SMTP id yj8mr8689014lbb.36.1431362597716; Mon, 11 May 2015 09:43:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1607849lbb; Mon, 11 May 2015 09:43:17 -0700 (PDT) X-Received: by 10.140.133.209 with SMTP id 200mr15387013qhf.94.1431362596169; Mon, 11 May 2015 09:43:16 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id l91si13500346qkh.85.2015.05.11.09.43.15; Mon, 11 May 2015 09:43:16 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 56DA661D84; Mon, 11 May 2015 16:43:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id DC13861D90; Mon, 11 May 2015 16:41:53 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id B46FE61D71; Mon, 11 May 2015 16:41:39 +0000 (UTC) Received: from mail-wi0-f170.google.com (mail-wi0-f170.google.com [209.85.212.170]) by lists.linaro.org (Postfix) with ESMTPS id CD7F961D86 for <lng-odp@lists.linaro.org>; Mon, 11 May 2015 16:40:37 +0000 (UTC) Received: by wiun10 with SMTP id n10so103508675wiu.1 for <lng-odp@lists.linaro.org>; Mon, 11 May 2015 09:40:37 -0700 (PDT) X-Received: by 10.194.192.72 with SMTP id he8mr22400960wjc.11.1431362437075; Mon, 11 May 2015 09:40:37 -0700 (PDT) Received: from localhost.localdomain ([90.152.119.35]) by mx.google.com with ESMTPSA id jq3sm23621168wjc.22.2015.05.11.09.40.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 11 May 2015 09:40:36 -0700 (PDT) From: Zoltan Kiss <zoltan.kiss@linaro.org> To: lng-odp@lists.linaro.org Date: Mon, 11 May 2015 17:40:11 +0100 Message-Id: <1431362411-8686-7-git-send-email-zoltan.kiss@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1431362411-8686-1-git-send-email-zoltan.kiss@linaro.org> References: <1431362411-8686-1-git-send-email-zoltan.kiss@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 6/6] build.sh: don't clone ODP if repo is already checked out X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <https://lists.linaro.org/mailman/listinfo/lng-odp>, <mailto:lng-odp-request@lists.linaro.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" <lng-odp-bounces@lists.linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zoltan.kiss@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 |
diff --git a/build.sh b/build.sh index eb7328b..2f69bc0 100755 --- a/build.sh +++ b/build.sh @@ -161,10 +161,12 @@ if [[ ${BUILD_DEPS} -ge 1 ]]; then fi fi -echo "Pulling from ${GIT_ODP}, branch ${GIT_BRANCH}" -remote_name="$(remote_name ${GIT_ODP})" -odp_fetch "${GIT_ODP}" "${ODP_SRCDIR}" "${remote_name}" -odp_new_workdir "${ODP_SRCDIR}" "${remote_name}/${GIT_BRANCH}" "${ODP_BUILDDIR}" +if [ ! -d "$ODP_BUILDDIR" ]; then + echo "Pulling from ${GIT_ODP}, branch ${GIT_BRANCH}" + remote_name="$(remote_name ${GIT_ODP})" + odp_fetch "${GIT_ODP}" "${ODP_SRCDIR}" "${remote_name}" + odp_new_workdir "${ODP_SRCDIR}" "${remote_name}/${GIT_BRANCH}" "${ODP_BUILDDIR}" +fi # Run cross compile coverty coverity_prepare
So developers can use this script on their local copy. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> --- build.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)