From patchwork Tue Jan 20 13:51:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 43371 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 05D03218DB for ; Tue, 20 Jan 2015 13:51:53 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id pv20sf6424481lab.3 for ; Tue, 20 Jan 2015 05:51:52 -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=TxOh0SeyFUqrMUDkRoly7XaXHhKH4uuROc0lKf9vrdU=; b=bC547hY9W6W8o0SYh3I1yAheQdov7Ux7PiPFOBWQQ9E5IhHiHba6GXPaapGy3WIXh0 G+SHCOqLkRiUG+SjslCW7851EdIkIU1J7/mG0zcBmE8w+jxXBdV2pefD9oyLP/1LeYNT 47s+DsH2IUh1m3aKFBZDNEBa2mHAPGbkzMepcbdJGQBtOpRpzDoDDr33dQlHjUc4PmeI 4+4N5Xg2NHQkeo6aWUPrHZYur18wKw2qlESg8eWDG/Y+z/HgqFSaN31zGtkPZmBMPIg9 ZU5NZ8FwH7Hfr2sNMoTXfLUoQWsbpQo9gCXX3nN6ZyZCbeLIVN54krPjMRdZYim8mHDk kv9A== X-Gm-Message-State: ALoCoQn5KiSb2eEE3Fi6g//yGTDqCltYwI6zC6Ge1EAShYobnZmRrBedCt3prf2iHT5Iqd5dahQi X-Received: by 10.112.174.36 with SMTP id bp4mr237843lbc.15.1421761911935; Tue, 20 Jan 2015 05:51:51 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.22.40 with SMTP id a8ls648411laf.66.gmail; Tue, 20 Jan 2015 05:51:51 -0800 (PST) X-Received: by 10.152.45.4 with SMTP id i4mr38616235lam.74.1421761911797; Tue, 20 Jan 2015 05:51:51 -0800 (PST) Received: from mail-la0-f52.google.com (mail-la0-f52.google.com. [209.85.215.52]) by mx.google.com with ESMTPS id oa1si5858857lbb.100.2015.01.20.05.51.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 20 Jan 2015 05:51:51 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.52 as permitted sender) client-ip=209.85.215.52; Received: by mail-la0-f52.google.com with SMTP id hs14so34289632lab.11 for ; Tue, 20 Jan 2015 05:51:51 -0800 (PST) X-Received: by 10.112.125.41 with SMTP id mn9mr37998440lbb.80.1421761911713; Tue, 20 Jan 2015 05:51:51 -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 c8csp1424116lbb; Tue, 20 Jan 2015 05:51:50 -0800 (PST) X-Received: by 10.224.36.14 with SMTP id r14mr15348655qad.39.1421761910269; Tue, 20 Jan 2015 05:51:50 -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 o45si22207960qgd.14.2015.01.20.05.51.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 20 Jan 2015 05:51:50 -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 1YDZDe-00016c-Cl; Tue, 20 Jan 2015 13:51:46 +0000 Received: from mail-la0-f53.google.com ([209.85.215.53]) by ip-10-35-177-41.ec2.internal with esmtp (Exim 4.76) (envelope-from ) id 1YDZDN-00013b-7T for lng-odp@lists.linaro.org; Tue, 20 Jan 2015 13:51:29 +0000 Received: by mail-la0-f53.google.com with SMTP id gq15so9883514lab.12 for ; Tue, 20 Jan 2015 05:51:23 -0800 (PST) X-Received: by 10.152.42.198 with SMTP id q6mr37009048lal.48.1421761883334; Tue, 20 Jan 2015 05:51: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 aq4sm4015503lbc.46.2015.01.20.05.51.22 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Jan 2015 05:51:22 -0800 (PST) From: Anders Roxell To: lng-odp@lists.linaro.org Date: Tue, 20 Jan 2015 14:51:36 +0100 Message-Id: <1421761896-23612-5-git-send-email-anders.roxell@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1421761896-23612-1-git-send-email-anders.roxell@linaro.org> References: <1421761896-23612-1-git-send-email-anders.roxell@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCHv3 4/4] 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.52 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 : ##