From patchwork Tue Nov 10 21:32:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 56352 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1016120lbb; Tue, 10 Nov 2015 13:45:00 -0800 (PST) X-Received: by 10.50.50.139 with SMTP id c11mr6710766igo.10.1447191900332; Tue, 10 Nov 2015 13:45:00 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id wl5si7217845igb.21.2015.11.10.13.44.59; Tue, 10 Nov 2015 13:45:00 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: by lists.linaro.org (Postfix, from userid 109) id 8EC0761B2C; Tue, 10 Nov 2015 21:44:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 8626861D2B; Tue, 10 Nov 2015 21:38:40 +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 9BE7361D2B; Tue, 10 Nov 2015 21:38:37 +0000 (UTC) Received: from mail-lf0-f42.google.com (mail-lf0-f42.google.com [209.85.215.42]) by lists.linaro.org (Postfix) with ESMTPS id 7FBDA61D2B for ; Tue, 10 Nov 2015 21:36:51 +0000 (UTC) Received: by lffu14 with SMTP id u14so6103494lff.1 for ; Tue, 10 Nov 2015 13:36:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=X1+A/KeSIFgBCxbRgVrANaU7GIwVPqnk7YaMPUh07mI=; b=ulV0WfjKkeJUUtXmAVMmli/yxYUBzcbbHf8bP1JYrtX2eemfGC0Jz994t8Dcl5J/4S Fu8y0O5sQHOVltUK+4pq4JvvvNSksp1Rcn0C8ucKrJroFcbA6nW+vsOfAkVBMfnxEWu1 UF4hprB1M8MJrFPUS9K215VUEYiV5SNN0Zn6LrMdtIlXzoatJyqcMoae4xgtUXfGR0V4 4c/iPxlF7CLv72n5vdweLec69UWd2QTLQIRTBIby5n1v5yTu2C4rCNv4VFwvo8gp+MMa mzHUxWlyz08zDLCUpX+E+G7hPW8K25ZvU0BGl1vUxVltgKTPUqvI0aJSkSub9N2UBhHS IxIg== 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; bh=X1+A/KeSIFgBCxbRgVrANaU7GIwVPqnk7YaMPUh07mI=; b=CRX73vbr/K1KQIrSgXjWELUpe5ckdXXRxsswl80N8JHd+zyKKHIyTG3kmjrqvw+qK3 wv7cR/jVs+Y4Fsp8KZpAT5gnKhXpLIYu+hvTIC2YV64he+lHcjLeFE+anJhwP5uu4uo0 uzX6VrZpQGOppOTaKsCZ2XTUj3gN5QAv+2v7FYQBlIxGvAgteP0Y3lFrEKImbbvUeJ00 tNsHXTkIkVT9+V0x/LV6SxW4g7CVAJ7+OgwRItZ+q8n4sBKEw0XPH8ZkwYAGF41q9iyn nVwckbqzvGXr5ib5h+3NTMGSj32FnkvwVjk1Mri6YZTpRjcx2crdRzl4WVgfpx6ojGdX iJww== X-Gm-Message-State: ALoCoQm8GXhwMxUrf35pHFJKJkWw0jWsUPMboyO3enEp/oitNMoZP4dRMPaI5P592GtA68WfCgI6 X-Received: by 10.25.134.134 with SMTP id i128mr2835255lfd.103.1447191410357; Tue, 10 Nov 2015 13:36:50 -0800 (PST) Received: from localhost (c-aa3470d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.52.170]) by smtp.gmail.com with ESMTPSA id jy3sm860008lbc.34.2015.11.10.13.36.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Nov 2015 13:36:49 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 10 Nov 2015 22:32:16 +0100 Message-Id: <1447191136-21213-10-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1447191136-21213-1-git-send-email-anders.roxell@linaro.org> References: <1447191136-21213-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 9/9] scripts/common_pkg_build: don't create pkg's if no repo X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" We shouldn't support building packages from a tarball. Suggested-by: Fathi Boudra Signed-off-by: Anders Roxell --- scripts/common_pkg_build.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/common_pkg_build.sh b/scripts/common_pkg_build.sh index cf4f6e3..eefc07d 100644 --- a/scripts/common_pkg_build.sh +++ b/scripts/common_pkg_build.sh @@ -10,7 +10,13 @@ prepare_tarball() { ./configure make dist - version=$(cat ${ROOT_DIR}/.scmversion) + if [[ -d ${ROOT_DIR}/.git ]]; then + version=$(cat ${ROOT_DIR}/.scmversion) + else + echo "This script isn't expected to be used without" + echo "a git repository." + exit 1 + fi cp ${package}-${version}.tar.gz ${package}_${version}.orig.tar.gz tar xzf ${package}_${version}.orig.tar.gz