Gentoo Archives: gentoo-dev

From: Tavis Ormandy <taviso@g.o>
To: Ciaran McCreesh <ciaranm@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] rfc: epause instead of sleep in ebuilds
Date: Wed, 01 Sep 2004 21:17:05
Message-Id: 20040901211706.GA19241@sdf.lonestar.org
In Reply to: [gentoo-dev] rfc: epause instead of sleep in ebuilds by Ciaran McCreesh
1 On Wed, Sep 01, 2004 at 09:21:44PM +0100, Ciaran McCreesh wrote:
2 > I'd suggest an implementation along the following lines:
3 >
4 > # Wait for the supplied number of seconds. If no argument is supplied,
5 > # defaults to five seconds. If the EPAUSE_IGNORE env var is set, don't
6 > # wait.
7 > epause() {
8 > if [ -z "$EPAUSE_IGNORE" ] ; then
9 > sleep ${1:-5}
10 > fi
11 > }
12 >
13 > Thoughts? I'd be happy to do all the work :)
14
15 sounds great, a test -t 1 in there could be handy as well.
16
17 --
18 -------------------------------------
19 taviso@××××××××××××.org | finger me for my gpg key.
20 -------------------------------------------------------
21
22 --
23 gentoo-dev@g.o mailing list