From patchwork Thu Jan 15 08:54:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 43153 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f200.google.com (mail-lb0-f200.google.com [209.85.217.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E6C2E240BA for ; Thu, 15 Jan 2015 08:56:02 +0000 (UTC) Received: by mail-lb0-f200.google.com with SMTP id u14sf7229052lbd.3 for ; Thu, 15 Jan 2015 00:56:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state: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=BETPOWtEoVgdvY2Fbxc6NYybaLaswuMQVROyKPhXQss=; b=ja8OO+VR7dwH9bnPFfBNXHkbRDL7tllzZdMSz0CSscYIIbWhVm7DmT6eDjoXlB8Y5J Wco9jHo4TGWl+dX9L9zl6s8SuLIMC4P68QaTYVBapivWA9XEoh1+Uu0qlmrYyKVRtIKi jT+80XWH4RcjITtHho4NlIYuiPVCwG8tSzgoPJ9LIg/9peN/bOSbu9PEieJhfEz9Xipp ZYQYudjv4Za3wlIO74Lo7POt8pUD8fd30mX00qcfUTTm2ppuPgjJH84EiFnRzh/NCB/D S+TvcsjjCdQ7s8rs0PrLq0lPAqk0a9GZkDzIeGwYZvmeQ3KjYpF3tmg5mflfqvDHdL5k TYdw== X-Gm-Message-State: ALoCoQk/8fpjUxer1J7+rLGyineGDDGB2Rw8Ki4cyyXLmyGIvPH+9twl0r+4cWHKuykRyxWetzXz X-Received: by 10.194.92.34 with SMTP id cj2mr139606wjb.5.1421312161920; Thu, 15 Jan 2015 00:56:01 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.70 with SMTP id be6ls209944lab.42.gmail; Thu, 15 Jan 2015 00:56:01 -0800 (PST) X-Received: by 10.152.206.41 with SMTP id ll9mr8579772lac.62.1421312161764; Thu, 15 Jan 2015 00:56:01 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id yi9si797797lab.58.2015.01.15.00.56.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Jan 2015 00:56:01 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id pv20so12388335lab.13 for ; Thu, 15 Jan 2015 00:56:01 -0800 (PST) X-Received: by 10.152.234.35 with SMTP id ub3mr8520635lac.70.1421312161682; Thu, 15 Jan 2015 00:56:01 -0800 (PST) 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.9.200 with SMTP id c8csp1962542lbb; Thu, 15 Jan 2015 00:56:00 -0800 (PST) X-Received: by 10.140.91.201 with SMTP id z67mr4403429qgd.27.1421312160264; Thu, 15 Jan 2015 00:56:00 -0800 (PST) Received: from ip-10-35-177-41.ec2.internal (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTPS id z20si1209391qax.23.2015.01.15.00.55.59 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 Jan 2015 00:56:00 -0800 (PST) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: from localhost ([127.0.0.1] helo=ip-10-35-177-41.ec2.internal) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YBgDd-00071b-Cs; Thu, 15 Jan 2015 08:55:57 +0000 Received: from mail-la0-f41.google.com ([209.85.215.41]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YBgDB-0006rf-8N for lng-odp@lists.linaro.org; Thu, 15 Jan 2015 08:55:29 +0000 Received: by mail-la0-f41.google.com with SMTP id hv19so12416452lab.0 for ; Thu, 15 Jan 2015 00:55:23 -0800 (PST) X-Received: by 10.152.27.130 with SMTP id t2mr8374468lag.28.1421312123693; Thu, 15 Jan 2015 00:55:23 -0800 (PST) Received: from localhost (c-853670d5.07-21-73746f28.cust.bredbandsbolaget.se. [213.112.54.133]) by mx.google.com with ESMTPSA id e1sm339347lah.43.2015.01.15.00.55.23 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Jan 2015 00:55:23 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Thu, 15 Jan 2015 09:54:44 +0100 Message-Id: <1421312084-12881-9-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421312084-12881-1-git-send-email-anders.roxell@linaro.org> References: <1421312084-12881-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 8/8] scripts: add builddeb to create deb packages X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: 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-bounces@lists.linaro.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: anders.roxell@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.54 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 Signed-off-by: Anders Roxell Reviewed-by: Steve McIntyre --- scripts/builddeb | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 scripts/builddeb diff --git a/scripts/builddeb b/scripts/builddeb new file mode 100755 index 0000000..2c8fb0e --- /dev/null +++ b/scripts/builddeb @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e + +ROOT_DIR=$(readlink -e $(dirname $0) | sed 's|/scripts||') +version=$(echo $(${ROOT_DIR}/scripts/odp_version.sh)) + +pushd ${ROOT_DIR} +./bootstrap +./configure +make dist + +cp opendataplane-${version}.tar.gz opendataplane_${version}.orig.tar.gz +tar xzf opendataplane_${version}.orig.tar.gz + +pushd ${ROOT_DIR}/opendataplane-${version} +cp -r ${ROOT_DIR}/debian . + +debuild -us -uc +popd +popd + +## vim: set sw=4 sts=4 et foldmethod=syntax : ##