Gentoo Archives: gentoo-dev

From: Kfir Lavi <lavi.kfir@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Can a bash script source ebuild functions?
Date: Mon, 03 Jan 2011 16:15:32
Message-Id: AANLkTin8c3H8wJ+t+-fb442rZU_WS3=6DKfFHQ4mPBj3@mail.gmail.com
In Reply to: Re: [gentoo-dev] Can a bash script source ebuild functions? by Samuli Suominen
1 On Mon, Jan 3, 2011 at 4:46 PM, Samuli Suominen <ssuominen@g.o>wrote:
2
3 > On 01/03/2011 04:38 PM, Kfir Lavi wrote:
4 > > Hi,
5 > > I would like to adapt my script that I run in the post install section
6 > > inside an ebuild, to source some functions like elog and such.
7 > >
8 > > Is it possible?
9 > >
10 > > Regards,
11 > > Kfir
12 >
13 > I don't know about elog, but you can get einfo with:
14 >
15 > #!/bin/bash
16 >
17 > . /etc/init.d/functions.sh
18 >
19 > einfo "foobar"
20 >
21 > Yep, thanks.
22
23 Kfir