Return-Path: X-Original-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bigtop-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C5072741C for ; Fri, 16 Sep 2011 20:32:17 +0000 (UTC) Received: (qmail 56870 invoked by uid 500); 16 Sep 2011 20:32:17 -0000 Delivered-To: apmail-incubator-bigtop-dev-archive@incubator.apache.org Received: (qmail 56828 invoked by uid 500); 16 Sep 2011 20:32:17 -0000 Mailing-List: contact bigtop-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bigtop-dev@incubator.apache.org Delivered-To: mailing list bigtop-dev@incubator.apache.org Received: (qmail 56815 invoked by uid 99); 16 Sep 2011 20:32:17 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 20:32:17 +0000 Received: from localhost (HELO [172.29.15.235]) (127.0.0.1) (smtp-auth username bmahe, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Sep 2011 20:32:17 +0000 Message-ID: <4E73B250.4000002@apache.org> Date: Fri, 16 Sep 2011 13:32:16 -0700 From: =?ISO-8859-1?Q?Bruno_Mah=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: bigtop-dev@incubator.apache.org CC: Andrew Bayer Subject: Re: Abstracting the build logic in rules/spec files References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 09/16/2011 01:12 PM, Andrew Bayer wrote: > So we already abstract away copying the bits into place for the packages via > bigtop-packages/src/common/foo/install_foo.sh. But we're not as of yet > abstracting the build logic - as a result, we're duplicating the build calls > in both the Debian rules files and the RPM spec files. I don't like > duplication. =) So I'd like to propose moving the build logic for the > components into shell scripts akin to the install_foo.sh scripts, in the > common area, which would then be called in the rules/specs. Does this sound > reasonable to everyone? > > A. > It works for me. Generalizing a template would also be most helpful.