Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: antarus@g.o
Subject: Re: [gentoo-dev] [PATCH eutils] Introduce run_in_build_dir() used in a few ebuilds.
Date: Sun, 13 Jan 2013 17:02:09
Message-Id: 20130113180226.2be64a4a@pomiocik.lan
In Reply to: Re: [gentoo-dev] [PATCH eutils] Introduce run_in_build_dir() used in a few ebuilds. by Alec Warner
1 On Sun, 13 Jan 2013 07:36:59 -0800
2 Alec Warner <antarus@g.o> wrote:
3
4 > On Sun, Jan 13, 2013 at 5:29 AM, Michał Górny <mgorny@g.o> wrote:
5 > > The run_in_build_dir() command simply runs given command
6 > > in the directory stated as BUILD_DIR. This variable is used commonly
7 > > by autotools-utils, cmake-utils and python-r1 eclasses, therefore I'm
8 > > proposing adding the relevant function to eutils.
9 > > ---
10 > > gx86/eclass/eutils.eclass | 19 +++++++++++++++++++
11 > > 1 file changed, 19 insertions(+)
12 > >
13 > > diff --git a/gx86/eclass/eutils.eclass b/gx86/eclass/eutils.eclass
14 > > index 6588792..bb3c1e3 100644
15 > > --- a/gx86/eclass/eutils.eclass
16 > > +++ b/gx86/eclass/eutils.eclass
17 > > @@ -1495,6 +1495,25 @@ prune_libtool_files() {
18 > > fi
19 > > }
20 > >
21 > > +# @FUNCTION: run_in_build_dir
22 > > +# @USAGE: <argv>...
23 > > +# @DESCRIPTION:
24 > > +# Run the given command in the directory pointed by BUILD_DIR.
25 > > +run_in_build_dir() {
26 > > + debug-print-function ${FUNCNAME} "$@"
27 > > + local ret
28 >
29 > local -i ret
30 > ?
31
32 Looks good. I didn't even know bash has something like that.
33
34 --
35 Best regards,
36 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies