X-Original-To: alpine-devel@mail.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 32A7EDC18C2 for ; Wed, 2 Mar 2016 12:20:50 +0000 (UTC) Received: from mout01.posteo.de (mout01.posteo.de [185.67.36.65]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id DA03EDC009F for ; Wed, 2 Mar 2016 12:20:49 +0000 (UTC) Received: from dovecot03.posteo.de (dovecot03.posteo.de [172.16.0.13]) by mout01.posteo.de (Postfix) with ESMTPS id A3CA920997 for ; Wed, 2 Mar 2016 13:20:47 +0100 (CET) Received: from mail.posteo.de (localhost [127.0.0.1]) by dovecot03.posteo.de (Postfix) with ESMTPSA id 3qFZDH3CHTz5vMw for ; Wed, 2 Mar 2016 13:20:47 +0100 (CET) Subject: Re: [alpine-devel] [PATCH] new aport: testing/pnmixer To: alpine-devel@lists.alpinelinux.org References: <1456869303-12595-1-git-send-email-hasufell@posteo.de> From: "hasufell@posteo.de" Message-ID: <56D6DA9D.7010403@posteo.de> Date: Wed, 2 Mar 2016 13:20:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 In-Reply-To: <1456869303-12595-1-git-send-email-hasufell@posteo.de> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP On 03/01/2016 10:55 PM, Julian Ospald wrote: [snip] > + > +die() { > + echo "$@" > + return 1 > +} > + > +build() { > + cd "${_builddir}" > + ./autogen.sh \ > + --build=$CBUILD \ > + --host=$CHOST \ > + --prefix=/usr \ > + --sysconfdir=/etc \ > + --mandir=/usr/share/man \ > + --localstatedir=/var \ > + || die "configuration failed" > + make || die "building failed" > +} > + > +package() { > + make -C "${_builddir}" DESTDIR="$pkgdir" install || die "installation failed" > +} > + Silly mistake. "die" doesn't behave here like I think it does, but I find those "return 1" calls a bit non-verbose. Using "exit 1" seems to break the cleanup functions. --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---