Gentoo Archives: gentoo-dev

From: Daniel Robbins <drobbins@g.o>
To: gentoo-dev@××××××××××.org
Subject: Re: [gentoo-dev] how to use die() and assert_true_or_die()
Date: Sun, 12 Aug 2001 12:58:08
Message-Id: 20010812125808.D27201@cvs.gentoo.org
In Reply to: [gentoo-dev] how to use die() and assert_true_or_die() by Chris Houser
1 On Sun, Aug 12, 2001 at 04:41:53AM -0400, Chris Houser wrote:
2
3 > --- assert_true_or_die() --
4 > This function is meant to be used when you don't want to make long
5 > commands even longer by adding the "|| die" syntax. To use it, simply
6 > add the function call after the command you want to check:
7 >
8 > ./configure ${myvar} --prefix=/usr --host=${CHOST}
9 > assert_true_or_die "Bad configure"
10 >
11 > Note that using the function this way doesn't allow you to check
12 > multiple commands in a pipeline the way die() does.
13
14 The "assert_true_or_die" function has been officially renamed to "assert".
15
16 Best Regards,
17
18 --
19 Daniel Robbins <drobbins@g.o>
20 Chief Architect/President http://www.gentoo.org
21 Gentoo Technologies, Inc.