From patchwork Thu Nov 19 06:35:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 56964 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2992686lbb; Wed, 18 Nov 2015 22:35:32 -0800 (PST) X-Received: by 10.140.141.136 with SMTP id 130mr5785362qhn.74.1447914931996; Wed, 18 Nov 2015 22:35:31 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id m7si5701180qge.7.2015.11.18.22.35.31; Wed, 18 Nov 2015 22:35:31 -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 DBC4F61FC8; Thu, 19 Nov 2015 06:35:30 +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 2DBC661FBF; Thu, 19 Nov 2015 06:35:27 +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 194D061FC1; Thu, 19 Nov 2015 06:35:25 +0000 (UTC) Received: from mail-lb0-f177.google.com (mail-lb0-f177.google.com [209.85.217.177]) by lists.linaro.org (Postfix) with ESMTPS id D1D7161FBC for ; Thu, 19 Nov 2015 06:35:23 +0000 (UTC) Received: by lbbkw15 with SMTP id kw15so37843713lbb.0 for ; Wed, 18 Nov 2015 22:35:22 -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; bh=J9c3QWiEvafYdBE+gc0gyywV1aVoZ1WzKIAvU2/4v9A=; b=Lua0F7BhBUZgDmC9EECj4jWuWxVNmEi3qHMYmacAVn4PGnN6JuY78HWzbOrSyY64dL yIgNpCXs1sJAQX4eCZbvnBCe8LK6KXZNZIG+uKkb4jDlqyzgl9TEgNRgt7/IdhE83fuj A/10Ci6eK/IfRGx+ASnsOXx9G+HPZStbtTSEEChFkRA47PRheiQvRIspoxf6tdTqWEyR 0QGu/WFrcfJLx9W5zhaC+rfazTB/xDo9y2GGnbpV3++CxMiLqRTvjep0Fyb0nncjtdsf Ij2wcfZdeQ5sdn/9w8TgOYrIKxDb2RylkzdCN824G1EUiznXhUvfGNIT+hGhEIVFZrnP mZXA== 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; bh=J9c3QWiEvafYdBE+gc0gyywV1aVoZ1WzKIAvU2/4v9A=; b=PZSWNfb5lBYeeUIMQzmwCuPUpW8xoAWRmpGz15w1diIqfGK2T0hr6Pi95DoNM77Axz 6mJ2KalH50xvbyFb50lhNB1eK9y+SL91XDgSZrrOO3rtMp4h1W4FV5MEijZAvUjTlEUm wq1HkgKYJik1n9qAzORLs6OTrE/q99qMarpKwbPJkqKtuODJYNWAIP475dNusR7ABl8g XgiMJfCtDUf5OrRq9oDY4aJxz2rWf+RECIAmLQIwerEj5bhWDJi8KcU7ZTyxTtSUsjcX CDP19TqYk1K9zunF/bzHUUUncrHnIEf9Ijfj3YUEbY+1gONuqyZzdOWLHhiE/zJySP+B T4YQ== X-Gm-Message-State: ALoCoQlIo19nHv/eakKfLk+f31qF7EvAS4QorcxB9/pwToeBAu1BNZzHkz1SW+qyzQRfveO3fNyb X-Received: by 10.112.120.212 with SMTP id le20mr2137462lbb.134.1447914922633; Wed, 18 Nov 2015 22:35:22 -0800 (PST) Received: from localhost.localdomain (91-157-175-207.elisa-laajakaista.fi. [91.157.175.207]) by smtp.gmail.com with ESMTPSA id g193sm975369lfb.6.2015.11.18.22.35.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 18 Nov 2015 22:35:21 -0800 (PST) From: Riku Voipio To: lng-odp@lists.linaro.org Date: Thu, 19 Nov 2015 08:35:18 +0200 Message-Id: <1447914918-11174-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.6.2 X-Topics: patch Cc: Riku Voipio Subject: [lng-odp] [PATCH] scripts/builddeb: add support for source only generation 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" For CI loop, we have separate job to build binaries (build-package). To make it possible to build source package without first installing all build-deps, add a new optional parameter "source" to build only source package. Signed-off-by: Riku Voipio --- scripts/builddeb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/builddeb b/scripts/builddeb index 829fd1d..28927ea 100755 --- a/scripts/builddeb +++ b/scripts/builddeb @@ -23,6 +23,11 @@ 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 +if [ "$1" = source ] +then + dpkg-buildpackage -S -d +else + debuild -us -uc +fi popd popd