From patchwork Thu Feb 4 03:10:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ricardo Salveti X-Patchwork-Id: 61154 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp216850lbl; Wed, 3 Feb 2016 19:10:53 -0800 (PST) X-Received: by 10.140.104.146 with SMTP id a18mr6109893qgf.59.1454555453724; Wed, 03 Feb 2016 19:10:53 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id d126si8447734qkb.84.2016.02.03.19.10.53; Wed, 03 Feb 2016 19:10:53 -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 Received: by lists.linaro.org (Postfix, from userid 109) id 4A87C61975; Thu, 4 Feb 2016 03:10:53 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=kbiOK5NI; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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_H2,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 7A00C61930; Thu, 4 Feb 2016 03:10:49 +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 4C14061900; Thu, 4 Feb 2016 03:10:48 +0000 (UTC) Received: from mail-qg0-f50.google.com (mail-qg0-f50.google.com [209.85.192.50]) by lists.linaro.org (Postfix) with ESMTPS id 59EA361960 for ; Thu, 4 Feb 2016 03:10:37 +0000 (UTC) Received: by mail-qg0-f50.google.com with SMTP id y9so27177237qgd.3 for ; Wed, 03 Feb 2016 19:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=LrQISUKox7lBs5X9UkTl7DjNxVje5I1jjwUStpPeaRY=; b=kbiOK5NI7tfvEGrjxTTfxNorikueCJ8+i0QbvkkDkCxRqE6R8Fi3VH3yz/8lveUzxZ tTWDwsUJEOD2uHPowklO3WWKJHhHquiPlhGaHLGnISputZv91KPnlA44Z9ORNaYnxQRI z+hXtg6iGEe2Q1deVkFCU2Cqy7YA8Jrabpg6A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=LrQISUKox7lBs5X9UkTl7DjNxVje5I1jjwUStpPeaRY=; b=Mt0LuCu15ws08xDpge95ca8oEatj1UrRCIkX+/8ubh98EY7r9K8gDuZod20EzyvCIn flTRtJxZw5zJwnRg8U4xknjDlksBAeGEcCeEeGYi2Sspno/zw4lcMYU0sawugkJEOEqL r7TZuVhvPFREbqcPh4XtMa/roXQd3T2OhkZdxczBRAVWjTVb+MkJQILB5qiWur1kHdGS +qEVE1GvHCU34VjE4xzbjvnf9jmzZcJFczuMYRm0cEPeWzRBzOoPLblP7wvAuRvKa0xP qfBxThcUB2MGKRQNWwSLOqK9ZQAKso72me5WO9qyeQU3SBz8Vt5ejEdKXe5hKIyWhxOG kZbQ== X-Gm-Message-State: AG10YOQAN7tXfrwvtjdZuzdCeDapQE1pV6cBXuRSO0fEjngqhQjRQtowcfVrZflbb0WpnFvp/qg= X-Received: by 10.140.107.182 with SMTP id h51mr6133880qgf.53.1454555437134; Wed, 03 Feb 2016 19:10:37 -0800 (PST) Received: from localhost.localdomain ([179.223.143.138]) by smtp.gmail.com with ESMTPSA id o75sm3885361qgd.12.2016.02.03.19.10.36 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Feb 2016 19:10:36 -0800 (PST) From: Ricardo Salveti To: lng-odp@lists.linaro.org Date: Thu, 4 Feb 2016 01:10:29 -0200 Message-Id: <1454555429-25692-1-git-send-email-ricardo.salveti@linaro.org> X-Mailer: git-send-email 2.5.0 X-Topics: patch Subject: [lng-odp] [PATCH] builddep: allow building only the src package 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" Allow the user to easily produce and use the source package when the binary build is not desired (e.g. to be uploaded in extra repositories). Signed-off-by: Ricardo Salveti --- scripts/builddeb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/builddeb b/scripts/builddeb index 829fd1d..979a920 100755 --- a/scripts/builddeb +++ b/scripts/builddeb @@ -23,6 +23,14 @@ if [ $(egrep "\.([a-z0-9]{8}\>|dirty)" .scmversion |wc -l) -gt 0 ]; then dch --newversion ${version}-1 --urgency low "not a official release!" fi -debuild -us -uc +# debuild default options +DEB_OPTS="-us -uc" + +# Also allow the user to create just the source package (skip build process) +if [ "$1" == source ]; then + DEB_OPTS="-S $DEB_OPTS" +fi + +debuild $DEB_OPTS popd popd