From: Donnie Berkholz <dberkholz@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] mono.eclass EAPI3(/4)
Date: Fri, 25 Mar 2011 09:29:30 -0500 [thread overview]
Message-ID: <20110325142929.GA4324@comet> (raw)
In-Reply-To: <1301006923.28822.4.camel@dauntless>
[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]
On 23:48 Thu 24 Mar , Christoph Mende wrote:
> Index: mono.eclass
> ===================================================================
> RCS file: /var/cvsroot/gentoo-x86/eclass/mono.eclass,v
> retrieving revision 1.13
> diff -u -b -B -r1.13 mono.eclass
> --- mono.eclass 8 Mar 2009 15:46:54 -0000 1.13
> +++ mono.eclass 24 Mar 2011 22:47:08 -0000
> @@ -35,24 +35,26 @@
> unset MONO_AOT_CACHE
>
> egacinstall() {
> + [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/
> gacutil -i "${1}" \
> - -root "${D}"/usr/$(get_libdir) \
> + -root "${ED}"/usr/$(get_libdir) \
> -gacdir /usr/$(get_libdir) \
> -package ${2:-${GACPN:-${PN}}} \
> || die "installing ${1} into the Global Assembly Cache failed"
> }
>
> mono_multilib_comply() {
> + [[ -z ${ED+set} ]] && local ED=${D%/}${EPREFIX}/
> local dir finddirs=() mv_command=${mv_command:-mv}
> - if [[ -d "${D}/usr/lib" && "$(get_libdir)" != "lib" ]]
> + if [[ -d "${ED}/usr/lib" && "$(get_libdir)" != "lib" ]]
No need for quotes when expanding variables or functions inside [[ ]].
That holds true for the rest of the diff, too. I'd also split this (and
a later find call) into two separate conditionals, with just one test
per [[ ]].
--
Thanks,
Donnie
Donnie Berkholz
Sr. Developer, Gentoo Linux
Blog: http://dberkholz.com
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
prev parent reply other threads:[~2011-03-25 14:33 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 22:48 [gentoo-dev] mono.eclass EAPI3(/4) Christoph Mende
2011-03-24 23:03 ` Christoph Mende
2011-03-25 14:29 ` Donnie Berkholz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110325142929.GA4324@comet \
--to=dberkholz@gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox