Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Cc: Donnie Berkholz <dberkholz@g.o>, rbrown@g.o
Subject: Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.8.6_p110.ebuild
Date: Mon, 24 Sep 2007 10:31:21
Message-Id: 200709240618.26279.vapier@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-lang/ruby: ChangeLog ruby-1.8.6_p110.ebuild by Donnie Berkholz
1 On Monday 24 September 2007, Donnie Berkholz wrote:
2 > On 09:38 Mon 24 Sep , Richard Brown (rbrown) wrote:
3 > > if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
4 > > ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
5 > >
6 > > if [ ! -n "$(readlink ${ROOT}usr/bin/ruby)" ] ; then
7 > > ${ROOT}usr/sbin/ruby-config ruby${SLOT/./}
8 > > fi
9 >
10 > ROOT can have spaces in it too.
11
12 this is why the form:
13 [[ -n $(readlink "${ROOT}"usr/bin/ruby) ]]
14 is preferred ... much easier to read and no nested quotes
15 -mike

Attachments

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

Replies