From patchwork Fri Oct 30 20:57:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 55857 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp84848lbr; Fri, 30 Oct 2015 14:07:06 -0700 (PDT) X-Received: by 10.55.217.20 with SMTP id u20mr12993851qki.98.1446239225999; Fri, 30 Oct 2015 14:07:05 -0700 (PDT) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id s85si7572212qkl.78.2015.10.30.14.07.05; Fri, 30 Oct 2015 14:07:05 -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; 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 98C9362C73; Fri, 30 Oct 2015 21:07:05 +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 BFCF362C8C; Fri, 30 Oct 2015 21:03:11 +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 B3C5C62C5C; Fri, 30 Oct 2015 21:02:39 +0000 (UTC) Received: from mail-lf0-f43.google.com (mail-lf0-f43.google.com [209.85.215.43]) by lists.linaro.org (Postfix) with ESMTPS id C7D2C62C79 for ; Fri, 30 Oct 2015 21:02:04 +0000 (UTC) Received: by lfbn126 with SMTP id n126so39318516lfb.2 for ; Fri, 30 Oct 2015 14:02:03 -0700 (PDT) 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=EmnGSbozf6sCaOi7N0doCpP75cXKnpFoHxV9Zdw8Ic8=; b=THEI62A71AQ/iqQNbCqDiWqxiN/AOdgd1B0QVbiKKdfTBd2EITRu248NIo7HaOCV+e AvA0UbTFDKoYoOTM200rnOOwhHJLFtswJN7lg0wXBU6NDIsjsO3h9clle0Sc7GDnbFrZ ulcYdWQuPFKT5cItYZd+nc/QR1b6/U4dGXMmJVl0n0sTQMcum8cTSCSFbdgpnWdblZY8 5v60+h88nJjUpN6gwEI23bLELOOdkN0u2VrONfaPKWKvNwFd+OD0xav8egOYxwUYpMIA f++YR/Wqb/2GqjeHai+3wrGemzJRAuwUabclB7xqFhvZ5i57tiX9HQrd6CaG6yZgkl+x OXWQ== 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=EmnGSbozf6sCaOi7N0doCpP75cXKnpFoHxV9Zdw8Ic8=; b=EbzS8cEocwKh6O6TFh9xAFPeH7eMN79l0uRo1iPyQV0T/74hKXDVi895A9VvSAxqem VqSj/Dgg1MJsii9+ZqbEGKL2ZEGpmFQG8IDIc8kfvutO7Z416g9UlJ+h6gZkRzQSjUwQ DVua6LZUvlAlP21OZ6kf8FvzZLBCjyy4+1GL72wDGZ2pzh5Tb4GclyG04o5dfsgry7Z1 Op16qR1AKzYeBTy7wE11DYFMRl/0R8BQMyFV6HzKZk/phdkFlpxZA0pup/3VLjQiljzb 68gaUtCv69XhUa/edKl68s/MNEzQq05xPu2xdkfzz1CjoH6YspBkbk8PvcUJ72u4SUEz 8ouw== X-Gm-Message-State: ALoCoQlwV043KuFyAU7tGNwVG4JpKxGxIe7iEiStkq5mwugZhOaIymrKdnjEDBuuRwnCboo9JtSy X-Received: by 10.112.135.9 with SMTP id po9mr5212638lbb.56.1446238923584; Fri, 30 Oct 2015 14:02:03 -0700 (PDT) Received: from localhost (c-893970d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.57.137]) by smtp.gmail.com with ESMTPSA id kk6sm1562019lbc.48.2015.10.30.14.02.02 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Oct 2015 14:02:02 -0700 (PDT) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Fri, 30 Oct 2015 21:57:48 +0100 Message-Id: <1446238668-15200-9-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1446238668-15200-1-git-send-email-anders.roxell@linaro.org> References: <1446238668-15200-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv2 8/8] scritps/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