From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id D86966DE0318 for ; Mon, 11 Sep 2017 09:05:47 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.487 X-Spam-Level: X-Spam-Status: No, score=0.487 tagged_above=-999 required=5 tests=[AWL=-0.165, SPF_NEUTRAL=0.652] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KvdCTFKFihPa for ; Mon, 11 Sep 2017 09:05:47 -0700 (PDT) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id B14D36DE0314 for ; Mon, 11 Sep 2017 09:05:45 -0700 (PDT) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 6B4DB100069; Mon, 11 Sep 2017 19:05:38 +0300 (EEST) From: Tomi Ollila To: Jani Nikula , notmuch@notmuchmail.org Subject: Re: [PATCH 2/2] devel: add script to test out-of-tree builds In-Reply-To: <20170910115617.12685-2-jani@nikula.org> References: <20170910115617.12685-1-jani@nikula.org> <20170910115617.12685-2-jani@nikula.org> User-Agent: Notmuch/0.25+89~g5a0c015 (https://notmuchmail.org) Emacs/25.2.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2017 16:05:48 -0000 On Sun, Sep 10 2017, Jani Nikula wrote: > Something I used for 'git bisect run', but we should really add this > as part of our process. Thanks for an excellent example why ``set -u`` should be included in *every* shell script. >;D Tomi Sent from N9 > --- > devel/out-of-tree-build-check.sh | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > create mode 100755 devel/out-of-tree-build-check.sh > > diff --git a/devel/out-of-tree-build-check.sh b/devel/out-of-tree-build-check.sh > new file mode 100755 > index 000000000000..cf938ed20f26 > --- /dev/null > +++ b/devel/out-of-tree-build-check.sh > @@ -0,0 +1,16 @@ > +#!/bin/sh > +# test out-of-tree builds in a temp directory > +# passes all args to make > + > +set -e > + > +srcdir="$(cd "$(dirname "$0")"/.. && pwd)" > +builddir=$(mktemp -d) > + > +cd $builddir > + > +$srcdir/configure > +make "$@" > + > +cd $notmuch_dir > +rm -rf $builddir > -- > 2.11.0 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch