On 03/01/2016 10:55 PM, Julian Ospald wrote:
[snip]
> +
> +die() {
> + echo "$_at_"
> + 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_at_lists.alpinelinux.org
Help: alpine-devel+help_at_lists.alpinelinux.org
---
Received on Wed Mar 02 2016 - 13:20:45 GMT